I have a very small data saved in redis and the following is working as expected that will allow me to download all keys.
redis-cli keys *
Is there any way to get the keys+values * ?
I have a very small data saved in redis and the following is working as expected that will allow me to download all keys.
redis-cli keys *
Is there any way to get the keys+values * ?
There's no command for that, but you can write a script to do so.
You will need to perform for each key a "type" command:
and depending on the response perform:
get <key>
hgetall <key>
lrange <key> 0 -1
smembers <key>
zrange <key> 0 -1 withscores
Keep in mind that for hashes and sorted sets you will be getting the keys/scores and values.