In this video, Emmanuel Henri explores the sorted sets and how they work with their commands. Then he introduces the challenge.
- [Instructor] Sorted set are very similar to sets.…The only difference are that they have…a user or developer defined order…and the commands are slightly different.…Let's take a look.…So the way you add sorted sets to your database…is by using the command zadd like so,…and then let's use for example, the new key rocket.…After this what you do is you use a score…and then the actual data that you want to enter in the score…will actually make the data sorted in a specific manner.…
Let's go ahead and do that.…The first thing we'll do is add a few items.…For example 1969 and that was the year…that Apollo 11 lift off.…Then we can also do 1998 and then we are going to enter…Deep Space 1 and this was the year…that the Space 1 actually launched.…Then we're going to enter 2008 for the Falcon 1.…
Okay so the database actually returned the fact…that we have three items in their database…and that is correct.…So if you want to list them, you use again the range.…So do zrange and then we are calling the rocket key.…And then start to finish, like we've done before,…
- 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.