await redis.pexpire(key, 60_000); // 1 minute
Sets a timeout on key. After the timeout has expired, the key will automatically be deleted.
1
0
key
Was this page helpful?