Table of contents:
info keyspace
select {number}
keys *
type keyname
if value type is:
GET <key>
HGETALL <key>
lrange <key> <start> <end>
smembers <key>
ZRANGEBYSCORE <key> <min> <max>
redis-cli --scan --pattern '*mypattern*' | xargs redis-cli del
Use rump to do all:
rump -from redis://redis_addr:redis_port/db_number -to redis://redis_addr:redis_port/db_number
# or -to/-from redisdb.dump if you want to use files
redis-cli --csv ${query to run} > output.csv
Might not be possible for all options, but docs are good. Example seting the maxmemory value to 4GB:
CONFIG SET maxmemory 4294967296
redis-cli --no-auth-warning -p ${YOUR_CLUSTER_PORT} -a ${YOUR_AUTH_PASS} CLUSTER NODES