diff --git a/docs/content/docs/concepts/database.mdx b/docs/content/docs/concepts/database.mdx index e8a51173bc..dee9f551f6 100644 --- a/docs/content/docs/concepts/database.mdx +++ b/docs/content/docs/concepts/database.mdx @@ -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);