In this video, Emmanuel Henri demonstrates hashes in action while implementing them into your ioredis server.
- [Narrator] Now that we know…what we can do with hashes, let's…use them in our project.…First, let's refactor our project…so it's a bit more modular in our server.…So the first thing I want to do is…grab all the code that we've done…for the set cad for the strings here,…all the way down to here.…So copy all this.…Or cut, whichever you prefer.…All right, so once you've created a new files,…so let's go ahead and do that.…Let's create a new file.…You click on the new file here.…
And let's call this one strings dot j s.…And let me cut that here.…And paste it inside of a variable that we'll create.…So I'll do a const, strings.…And this is going to be a function,…which will take a redis server…and I'll explain why I'm doing that in a second.…And then inside of our curly braces,…we'll paste the code that we just copied or cut.…
So you can save this here.…It's going to make all this disappear, it's okay.…And then let's save this one here as well.…And what you want to do at the end…is only returning on line 20.…And then do an export default,…
- Installing and setting up Redis
- Reviewing the basics of data types
- Setting up persistence and replication
- Exploring strings and lists
- The hash data structure
- Securing a Redis instance
- Publishing and subscribing with Redis
Skill Level Beginner
1. Setting Up
2. Introduction to Redis Basics
3. Datasets in Depth
4. Advanced Concepts
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.