I am trying to connect to a remote redis server and set keys using HSET command like below
hset ABCD:1105 balance 1000
I can able to see the Key using KEYS *
But after approx 1 minute the KEYS * returns empty (empty list or set)
. Whereas TTL on the key returns -1.
This is the memory configuration in the redis server
1) "masterauth"
2) ""
3) "maxmemory"
4) "0"
5) "maxmemory-samples"
6) "5"
7) "maxclients"
8) "10000"
9) "min-slaves-to-write"
10) "0"
11) "min-replicas-to-write"
12) "0"
13) "min-slaves-max-lag"
14) "10"
15) "min-replicas-max-lag"
16) "10"
17) "maxmemory-policy"
18) "noeviction"
Here the max memory policy is also noeviction. Then why the Keys are getting expired. Redis Server is running in Kubernetes cluster.