googledjango

Connect to Redis

Connect to Redis from the same computer where it is installed with the redis-cli client tool. Replace the YOURPASSWORD placeholder with the value of your password:

$ redis-cli -a YOURPASSWORD
127.0.0.1:6379>

Once connected, use the Redis get and set commands to save and retrieve keys and their values. Here’s an example:

127.0.0.1:6379> set foo bar
OK
127.0.0.1:6379> get foo
"bar"
Last modification December 21, 2022