method
RedisClient.psetex
milliseconds: number,
): Promise<'OK'>;
Set key to hold the string value with expiration time in milliseconds
@param key
The key to set
@param milliseconds
The expiration time in milliseconds
@param value
The value to set
@returns
Promise that resolves with "OK" on success
await redis.psetex("mykey", 10000, "Hello");
// Key will expire after 10000 milliseconds (10 seconds)Referenced types
type KeyLike = string | ArrayBufferView | Blob