redis.hset(hash_name, field, value) redis.hpexpireat(hash_name, field, int(time.time() * 1000) + 1000) assert redis.hpexpiretime(hash_name, field) == [1697059200000]
Retrieves the expiration time of a field in a hash in milliseconds.
-2
-1
Was this page helpful?