Arguments
string
required
The key of the hash.
string | number | (string | number)[]
required
The field(s) to retrieve the TTL for.
Response
The remaining TTL in seconds for each field.
-2if the field does not exist in the hash or if the key doesn’t exist.-1if the field exists but has no associated expiration.