Mexpireat
Bun

method

RedisClient.expireat

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

Set the expiration for a key as a Unix timestamp (in seconds)

@param key

The key to set expiration on

@param timestamp

Unix timestamp in seconds 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