[PR #8764] [MERGED] docs: update Upstash Redis TTL example to use redis.set #25099

Closed
opened 2026-04-15 22:43:28 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8764
Author: @TerryHenrard
Created: 3/24/2026
Status: Merged
Merged: 3/24/2026
Merged by: @bytaesu

Base: canaryHead: patch-1


📝 Commits (1)

  • c0ce3af Update deprecated doc using setex upstash redis function instead of .set(..., {ex: ...}))

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 docs/content/docs/concepts/database.mdx (+1 -1)

📄 Description

Summary by cubic

Updated the database docs to replace deprecated Upstash Redis redis.setex(key, ttl, value) with redis.set(key, value, { ex: ttl }) in the TTL example. This corrects the sample and matches the current Upstash Redis API.

Written for commit c0ce3af2fd. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/8764 **Author:** [@TerryHenrard](https://github.com/TerryHenrard) **Created:** 3/24/2026 **Status:** ✅ Merged **Merged:** 3/24/2026 **Merged by:** [@bytaesu](https://github.com/bytaesu) **Base:** `canary` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`c0ce3af`](https://github.com/better-auth/better-auth/commit/c0ce3af2fd73c85c9d3503860f9d62a8947054ed) Update deprecated doc using setex upstash redis function instead of .set(..., {ex: ...})) ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/database.mdx` (+1 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Updated the database docs to replace deprecated Upstash Redis `redis.setex(key, ttl, value)` with `redis.set(key, value, { ex: ttl })` in the TTL example. This corrects the sample and matches the current Upstash Redis API. <sup>Written for commit c0ce3af2fd73c85c9d3503860f9d62a8947054ed. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 22:43:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#25099