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