In this video, Emmanuel Henri goes through the solution for the sorted sets challenge. Then he explores the lexicographical sorted sets.
(light music)…- [Narrator] Okay so now that you've worked…on your own code for sorted sets,…let's take a look at what I did.…If my code looks slightly different…but you still achieved the proper results, kudos to you.…Okay, so if you look at my screen right now,…I have created a new function called sorted sets.…And I'm passing redis so this is no different than…any other base code function that we've created for sets,…for lists, so on and so forth.…So let's go back to sets.…And then what we did is use the z add command,…like we've done in the CLI…to create a new key called rockets.…
So make sure you don't create the same key…as the one that we were doing in CLI.…So then what I did is basically add a few launches for…specific rockets in the history of launches at NASA.…And I didn't order them here,…so we can see them ordered on screen.…So for example, I entered Deep Space out of order,…and also the Apollo 11 is out of order.…Then what I did is basically do the z range by score…and then we're calling on the key rockets.…
- 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.