(empty list or set) from redis-cli when starting from bash

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)
+5
source share
1 answer

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.

+7
source

All Articles