[PR #3895] [MERGED] docs: enhance Upstash Redis secondary storage implementation #21968

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3895
Author: @periakteon
Created: 8/9/2025
Status: Merged
Merged: 3/12/2026
Merged by: @himself65

Base: canaryHead: canary


📝 Commits (9)

  • 2e532f8 docs: enhance Redis secondary storage implementation for Better Auth
  • 0532b5d Merge branch 'canary' into canary
  • 68463d5 Merge branch 'canary' into canary
  • 09724a8 Merge branch 'canary' into canary
  • 7547d88 Merge branch 'canary' into canary
  • 16c85c9 Merge branch 'canary' into canary
  • dc89170 Merge branch 'canary' into canary
  • 449c5d6 Merge branch 'canary' into canary
  • 97d9fda Merge branch 'canary' into canary

📊 Changes

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

View changed files

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

📄 Description

Added detailed examples for integrating Upstash Redis with Better Auth, including installation instructions and a complete implementation of secondary storage methods (get, set, delete). Improved code formatting and error handling in the Redis methods.


Summary by cubic

Added a full Upstash Redis secondary storage example for Better Auth, covering setup, env vars, TTL handling, and usage. Also improved example formatting.

  • Docs Update
    • Install @upstash/redis; use Redis.fromEnv; document UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN; link to Upstash docs.
    • Implement SecondaryStorage get/set/delete with value normalization, error handling, and TTL via setex.
    • Pass redisSecondaryStorage to betterAuth; format console.log example to multi-line.

Written for commit 97d9fda636. 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/3895 **Author:** [@periakteon](https://github.com/periakteon) **Created:** 8/9/2025 **Status:** ✅ Merged **Merged:** 3/12/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `canary` --- ### 📝 Commits (9) - [`2e532f8`](https://github.com/better-auth/better-auth/commit/2e532f8a6c12cc98d5a10a7cd9cd4f9d3c3b652f) docs: enhance Redis secondary storage implementation for Better Auth - [`0532b5d`](https://github.com/better-auth/better-auth/commit/0532b5ddfbff405f0ab08ef2f153756ad5a9c5fd) Merge branch 'canary' into canary - [`68463d5`](https://github.com/better-auth/better-auth/commit/68463d5db5e61fb5a224e40442fb890dea5b8da0) Merge branch 'canary' into canary - [`09724a8`](https://github.com/better-auth/better-auth/commit/09724a813f095eb05db0d263df87aa4110c29ffa) Merge branch 'canary' into canary - [`7547d88`](https://github.com/better-auth/better-auth/commit/7547d88984c07d63417119f3dbafbdf31e3c1e20) Merge branch 'canary' into canary - [`16c85c9`](https://github.com/better-auth/better-auth/commit/16c85c919db8f443303bc0c17c066dfa4e55e1f1) Merge branch 'canary' into canary - [`dc89170`](https://github.com/better-auth/better-auth/commit/dc89170f3df125b59e2406a05fff81cde20a0710) Merge branch 'canary' into canary - [`449c5d6`](https://github.com/better-auth/better-auth/commit/449c5d60f60d5902196eb735b73631b1e16a0179) Merge branch 'canary' into canary - [`97d9fda`](https://github.com/better-auth/better-auth/commit/97d9fda63696ac45c5c7ef18366a541ae51abe0c) Merge branch 'canary' into canary ### 📊 Changes **1 file changed** (+102 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/database.mdx` (+102 -1) </details> ### 📄 Description Added detailed examples for integrating Upstash Redis with Better Auth, including installation instructions and a complete implementation of secondary storage methods (get, set, delete). Improved code formatting and error handling in the Redis methods. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added a full Upstash Redis secondary storage example for Better Auth, covering setup, env vars, TTL handling, and usage. Also improved example formatting. - **Docs Update** - Install @upstash/redis; use Redis.fromEnv; document UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN; link to Upstash docs. - Implement SecondaryStorage get/set/delete with value normalization, error handling, and TTL via setex. - Pass redisSecondaryStorage to betterAuth; format console.log example to multi-line. <sup>Written for commit 97d9fda63696ac45c5c7ef18366a541ae51abe0c. 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 20:43:31 -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#21968