In this video, Emmanuel Henri demonstrates how to implement lists into your ioredis server.
- [Instructor] Similar to the way…we implemented lists in our server,…let's add list using our working data sets.…So, the first thing we'll do is create a new file.…So you can create a new file by clicking on the little icon…if you're using Visual Studio Code,…or you can always do New File at the top, like so.…And it doesn't show it in the right stuff,…so let's go ahead and create it from the icon here.…And you want to call this one list.js.…
And in this one, we'll create a new list.…So, let's go ahead and create a function called List,…like so.…And like before, we're passing redis,…which is a function that will return.…And then we export default List, plural.…Make sure you do plural.…Save that for now,…and then make sure that you import it inside of our index,…so that we can see it in our console.…
So, import List from List.…And then run the function here, List,…and make sure that you pass redis to it.…All right, so if we save, nothing's going to happen…because we don't have anything yet in our list.…And we're going to start using the commands…
- 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.