课程: Databases for Node.js Developers (2021)
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Set up Redis
- [Instructor] Similarly to MongoDB, we will also install a Docker container for Redis. For that, please make sure that your Docker daemon is still running and if it's running, you can type 'docker pull Redis' and this will pull the latest Docker image from Docker hub. Next, we want to create the container and run it. For that, type 'docker run--name' and this container should be named Redis. And again, we have to provide the port configuration. So we want to have the local port here on our machine, 7379 and this maps to the port into container, 6379 which is the default port of Redis. We want to create daemon here and we want to use the Redis image for that. And now we have a running container, we see that if we run Docker PS. Now, as you see we have a Redis container and the Mongo container running. As for MongoDB, we also want to use some graphic user interface to see what's actually stored in Redis and again…
内容
-
-
-
-
-
-
(已锁定)
Introduction to key-value stores5 分钟 10 秒
-
(已锁定)
Set up Redis2 分钟 43 秒
-
(已锁定)
Use Node.js with Redis9 分钟 45 秒
-
(已锁定)
Add Redis to your project5 分钟 57 秒
-
(已锁定)
Session management in Express3 分钟 33 秒
-
(已锁定)
Add Redis sessions to your project4 分钟 27 秒
-
(已锁定)
Implement a basket service6 分钟 23 秒
-
(已锁定)
Add the basket to the page9 分钟 28 秒
-
(已锁定)
-
-