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>

Once connected, use the Redis get and set commands to save and retrieve keys and their values. Here’s an example:> set foo bar
OK> get foo
Last modification December 21, 2022