3000 explained code solutions for 75 technologies


redisGet all keys values in Redis


for k in $(redis-cli KEYS '*'); do echo $k \"$(redis-cli GET $k)\"; donectrl + c
redis-cli

launch Redis CLI interface in interactive mode

KEYS '*'

finds all keys on Redis server

do echo $k

for every key we will print key name

redis-cli GET $k

for every key we'll also get and print key value