docs: update Upstash Redis TTL example to use redis.set (#8764)

This commit is contained in:
Terry Henrard
2026-03-24 21:52:02 +00:00
committed by GitHub
parent ed269e93a6
commit e0c8d853bf
+1 -1
View File
@@ -278,7 +278,7 @@ export const redisSecondaryStorage: SecondaryStorage = {
if (ttl) {
// Set with TTL in seconds
await redis.setex(key, ttl, stringValue);
await redis.set(key, stringValue, { ex: ttl });
} else {
// Set without TTL
await redis.set(key, stringValue);