Mpexpireat
Bun

method

RedisClient.pexpireat

key: KeyLike,
millisecondsTimestamp: number
): Promise<number>;

Set the expiration for a key as a Unix timestamp in milliseconds

@param key

The key to set expiration on

@param millisecondsTimestamp

Unix timestamp in milliseconds when the key should expire

@returns

Promise that resolves with 1 if timeout was set, 0 if key does not exist

Referenced types

type KeyLike = string | ArrayBufferView | Blob