Get TTL of hash fields in seconds (Redis 7.4+) Syntax: HTTL key FIELDS numfields field [field ...]
method
RedisClient.httl
Referenced types
type KeyLike = string | ArrayBufferView | Blob
method
Get TTL of hash fields in seconds (Redis 7.4+) Syntax: HTTL key FIELDS numfields field [field ...]
Array where each element is: -2 (field doesn't exist), -1 (no expiration), TTL in seconds
redis.httl("mykey", "FIELDS", 2, "field1", "field2")