redis.hset(hash_name, field, value) redis.hexpire(hash_name, field, 10) assert redis.httl(hash_name, field) == [9]
Retrieves the remaining time-to-live (TTL) for field(s) in a hash in seconds.
-2
-1
Was this page helpful?