redis.hset(hash_name, field, value) redis.hexpireat(hash_name, field, int(time.time()) + 10) assert redis.hexpiretime(hash_name, field) == [1697059200]
Retrieves the expiration time of field(s) in a hash in seconds.
-2
-1
Was this page helpful?