[PR #501] [MERGED] docs: redis value change #28929

Closed
opened 2026-04-17 20:21:44 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/501
Author: @productdevbook
Created: 11/12/2024
Status: Merged
Merged: 11/12/2024
Merged by: @Bekacru

Base: mainHead: patch-1


📝 Commits (1)

📊 Changes

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

View changed files

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

📄 Description

This pull request includes a change to the secondaryStorage configuration in the database.mdx file to ensure that values are stored as JSON strings in Redis.

const sessionStringified = await secondaryStorage.get(sessionId);
        if (sessionStringified) {
          const s = JSON.parse(sessionStringified);

🔄 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/501 **Author:** [@productdevbook](https://github.com/productdevbook) **Created:** 11/12/2024 **Status:** ✅ Merged **Merged:** 11/12/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`fac18e0`](https://github.com/better-auth/better-auth/commit/fac18e0bdf439aef0396ebeb7a9f6e28e94ba4bd) docs: redis value change ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/database.mdx` (+2 -2) </details> ### 📄 Description This pull request includes a change to the `secondaryStorage` configuration in the `database.mdx` file to ensure that values are stored as JSON strings in Redis. ``` const sessionStringified = await secondaryStorage.get(sessionId); if (sessionStringified) { const s = JSON.parse(sessionStringified); ``` * [`docs/content/docs/concepts/database.mdx`](diffhunk://#diff-3fb82b9771e62eb4c129ceb5109e4500f630d5fd40b289d06ff38f69d4c52dc3L253-R254): Modified the `set` method in `secondaryStorage` to store values as JSON strings in Redis. --- <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-17 20:21:44 -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#28929