Redis¶
Install¶
MacOS¶
Debian¶
Check version¶
Start¶
Start & connect to local¶
Start local redis server
To run as daemon
Connect from another terminal
Connect to remote¶
Or omit the -a
flag and then login with
If your data is sharded, you'll have to supply the -c
flag
Otherwise you'll see some errors like (error) MOVED 5505
when you're connected and execute a command
See https://stackoverflow.com/a/53000256/15493213
CLI¶
https://lightrun.com/dev-tools/using-the-redis-command-line/
Select Database¶
There'll be 16 databases by default. If you connect directly without supplying the information, you'll use database 0.
To choose another database
https://redis.io/commands/select/
Get all keys¶
Delete all keys¶
String¶
Set
Get
List¶
Get
Hashmap¶
Set
hset <hashmap> <key1> <val1> <key2> <val2>
# <hashmap>[<key1>] = <val1>
# <hashmap>[<key2>] = <val2>
Get
Get all keys
Get all key & values
GUI¶
RedisInsight¶
https://redis.com/redis-enterprise/redis-insight/
Fill in fake info and your download will start
Have built-in termiinal