In this video, Emmanuel Henri goes through the basics of creating lists, how to add and remove items, and other potential commands.
- [Narrator] We learned earlier that lists…are a sequence of ordered elements.…They are fast and ideal when you need…to add new items at the beginning or end of the list.…You might use lists to add new data when it's sequential.…For example, you might use them…for storing tweets or Messenger messages.…Let's go over the basic commands for working with lists.…So the way you create a new list,…you do an rpush or lpush.…Basically that creates the new list…as you add new items.…So let's go an rpush for now and call this groceries…and then add values to our groceries.…
So we're basically creating the list.…So let's go ahead and create our grocery list.…So apples, cherries, pears,…and then let's add red meat.…Again the strings with the double quote works…for lists as well, and we have four items.…The way you list your list,…you do an lrange and then the key is groceries.…And you do a start,…which is the position zero,…and then minus one to list everything.…
If you do a minus two, it's going to list…everything but the final one,…
- 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.