mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-26 21:45:40 -05:00
docs: update Upstash Redis TTL example to use redis.set (#8764)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user