@harry you can set expiry to any Redis data types keys. below is example for Hashes
redis> HSET myhash field1 "helloworld" (integer) 0 redis> EXPIRE myhash 60 (integer) 1 redis> TTL myhash (integer) 51 redis> HGET myhash field1 "helloworld" redis> TTL myhash (integer) 10 redis> TTL myhash (integer) -2 redis> HGET myhash field1 (nil) Hope this helps.
Hope this helps.