I have 3 dummy keys stored on my local redis server.
redis 127.0.0.1:6379> keys * 1) "key2" 2) "key3" 3) "key1"
When I try to get the same results from bash, it returns "(empty list or set)". Why?
$ redis-cli keys * (empty list or set)
Awww. I just remembered that "*" has a special meaning in bash. So,
redis-cli keys \*
work.
Note . Not sure if the community will starve, but leaving this question to some poor soul who might get stuck like I was.