I have a redis server running in a Docker container. I push values to a list in there from an outside script. When I'm in the redis container, however, redis-cli keys *
returns (empty array)
. This isn't an issue with selecting the correct database, I've tried that. See the following terminal output:
/redis_data $ redis-cli info keyspace
# Keyspace
db0:keys=1,expires=0,avg_ttl=0
/redis_data $ redis-cli keys *
(empty array)
/redis_data $ redis-cli select 0
OK
/redis_data $ redis-cli keys *
(empty array)
/redis_data $ redis-cli keys log_list # this is the key I've been pushing to
1) "log_list"
/redis_data $ redis-cli keys dne # a key I know doesn't exist
(empty array)