Get the expiration time of a key as a UNIX timestamp in seconds
method
RedisClient.expiretime
@param key
The key to check
@returns
Promise that resolves with the timestamp, or -1 if the key has no expiration, or -2 if the key doesn't exist
Referenced types
type KeyLike = string | ArrayBufferView | Blob