redis.hset(hash_name, field, value) redis.hpexpire(hash_name, field, 1000) assert redis.hpttl(hash_name, field) == [950]
Retrieves the remaining time-to-live (TTL) for field(s) in a hash in milliseconds.
-2
-1
Was this page helpful?