await redis.hset("my-key", "my-field", "my-value"); await redis.hpexpireat("my-key", "my-field", Date.now() + 1000); const expireTime = await redis.hpexpiretime("my-key", "my-field"); console.log(expireTime); // e.g., 1697059200000
Retrieves the expiration time of a field in a hash in milliseconds.
-2
-1
Was this page helpful?