print redis keys code example
Example: redis scan keys and print values shell
#From shell
redis-cli --raw keys "KeyPrefix*" | xargs redis-cli GET
# or
redis-cli --scan --pattern "KeyPrefix*" | xargs redis-cli GET
#From shell
redis-cli --raw keys "KeyPrefix*" | xargs redis-cli GET
# or
redis-cli --scan --pattern "KeyPrefix*" | xargs redis-cli GET