[PR #5350] [MERGED] docs: add note about redis seconds #5950

Closed
opened 2026-03-13 12:42:25 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5350
Author: @reslear
Created: 10/16/2025
Status: Merged
Merged: 10/16/2025
Merged by: @Bekacru

Base: mainHead: patch-14


📝 Commits (3)

📊 Changes

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

View changed files

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

📄 Description

Added a clarification note in the Secondary Storage documentation about TTL (time-to-live) units.
Better Auth uses seconds for TTL values, while some external storages (like Redis or memory-based stores) may expect milliseconds.


Summary by cubic

Clarified TTL units in the Secondary Storage docs: Better Auth uses seconds for set() TTL, while some stores expect milliseconds. Added a note and updated the Redis example comment to show how to convert when needed (ttl * 1000).


🔄 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/5350 **Author:** [@reslear](https://github.com/reslear) **Created:** 10/16/2025 **Status:** ✅ Merged **Merged:** 10/16/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `patch-14` --- ### 📝 Commits (3) - [`ab66c9a`](https://github.com/better-auth/better-auth/commit/ab66c9a8ec204758d1948fa7fd89cd07c2539a95) docs: add note about redis seconds - [`c60bbdc`](https://github.com/better-auth/better-auth/commit/c60bbdcc624b953f36e38f55f74c61772b95fc08) Update database.mdx - [`c68efc6`](https://github.com/better-auth/better-auth/commit/c68efc69b5b930cce8ea4e33ecd22364e026cb5c) Update database.mdx ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/database.mdx` (+6 -0) </details> ### 📄 Description Added a clarification note in the Secondary Storage documentation about TTL (time-to-live) units. Better Auth uses seconds for TTL values, while some external storages (like Redis or memory-based stores) may expect milliseconds. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Clarified TTL units in the Secondary Storage docs: Better Auth uses seconds for set() TTL, while some stores expect milliseconds. Added a note and updated the Redis example comment to show how to convert when needed (ttl * 1000). <!-- 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-03-13 12:42:25 -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#5950