Mgetex
Bun

method

RedisClient.getex

key: KeyLike
): Promise<null | string>;

Get the value of a key and optionally set its expiration

@param key

The key to get

@returns

Promise that resolves with the value of the key, or null if the key doesn't exist

Referenced types

type KeyLike = string | ArrayBufferView | Blob