Mpexpiretime
Bun

method

RedisClient.pexpiretime

key: KeyLike
): Promise<number>;

Get the expiration time of a key as a UNIX timestamp in milliseconds

@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