Redis Commands
In this section, we explain a few Redis commands and provide usage examples. This is not intended to be an exhaustive list, but is focused on common commands I have used in my own personal applications. You will find a complete list of Redis commands on the Redis website. The official Redis documentation is quite good, and I often leverage their verbiage in the next sections for describing the purpose of each command.
All commands are issued from the redis prompt which appears after issuing the following command:
$ redis-cli
redis>
Note
We are using redis>
to represent the Redis prompt in these examples since the Redis prompt will vary depending on context. You'll likely see something like 127.0.0.1:6279>
if you are running the redis-cli
on the local machine hosting the Redis server.