In this video, Emmanuel Henri demonstrates how to implement the string commands in the ioredis server implementation.
- [Instructor] We've tested the string commands…in the CLI, let's see them in action…within our ioredis implementation.…We've learned how to set and get a simple string…in our initial set up of the server.…So let's push this a little bit further.…So the way it works in ioredis is the same way…as it works in the Ci.…So, if you see we have a set and a get…and it works the exact same way,…so you set the key of name…and then with a value of Emmanuel,…and then we get the result here.…We get the key and then we actually printed out…the result in our console.…
So, it works the same way for everything else.…So, let's go ahead and do for example,…add an expiration, so we can add an expiration…like so and then set a number of five seconds.…So, if we save that our server will restart,…control C, let's start it again.…And we get the Emmanuel, and then let's wait five seconds,…go into our console here and get name.…
And it's nil, so it works the same way.…So, every time you enter a value in the arguments here,…so everything time you enter a value…
- 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.