From e0c8d853bfa87fcc1d322457e19fe44f2a017633 Mon Sep 17 00:00:00 2001 From: Terry Henrard <112253701+TerryHenrard@users.noreply.github.com> Date: Tue, 24 Mar 2026 22:52:02 +0100 Subject: [PATCH] docs: update Upstash Redis TTL example to use `redis.set` (#8764) --- docs/content/docs/concepts/database.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);