Related questions
TTL for a set member
Is it possible in Redis to set TTL (time to live) not for a specific key, but for a member for a set?
I am using a structure for tags proposed by Redis documentation - the data are simple key-value …
my redis keys do not expire
My redis server does not delete keys when the time-to-live reaches 0.
Here is a sample code:
redis-cli
>SET mykey "ismykey"
>EXPIRE mykey 20
#check TTL
>TTL mykey
>(integer) 17
> ...
>TTL mykey
>(integer) -1
#mykey chould …
Redis store key without a value
When using the Redis expire commands like SETEX and TTL, there are scenarios in which there is no need for the key to hold a value at all, because the time to live acts as such.
However, Redis requires any …