[PR #2281] [CLOSED] feat(redis adapter): create redis adapter as secondary database #4242

Closed
opened 2026-03-13 11:39:08 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2281
Author: @Marius-brt
Created: 4/14/2025
Status: Closed

Base: mainHead: feature/redis-plugin


📝 Commits (4)

  • 132dafe feat: create redis adapter as secondary database
  • 39438ed fix: improve mistakes in doc and test file
  • 1914407 fix: improve redis doc
  • 4c8e86a feat: update redis secondary adapter location and doc

📊 Changes

8 files changed (+327 additions, -73 deletions)

View changed files

📝 docker-compose.yml (+10 -1)
📝 docs/components/sidebar-content.tsx (+23 -0)
docs/content/docs/secondary-adapters/redis.mdx (+33 -0)
📝 packages/better-auth/package.json (+23 -10)
packages/better-auth/src/secondary-adapters/redis-adapter/index.ts (+1 -0)
packages/better-auth/src/secondary-adapters/redis-adapter/redis-secondary-adapter.ts (+66 -0)
packages/better-auth/src/secondary-adapters/redis-adapter/test/secondary-adapter.redis.test.ts (+58 -0)
📝 pnpm-lock.yaml (+113 -62)

📄 Description

This PR introduces Redis adapter as a Secondary Database. It allow to add Redis in one line of code instead to have to do manual implementation. It use ioredis under the hood.

Changes

  • Create Redis Adapter by implementing the SecondaryStorage interface
  • Create tests for the adapter
  • Add Redis in the docker-compose.yml
  • Add a page in the documentation

🔄 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/2281 **Author:** [@Marius-brt](https://github.com/Marius-brt) **Created:** 4/14/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/redis-plugin` --- ### 📝 Commits (4) - [`132dafe`](https://github.com/better-auth/better-auth/commit/132dafe521cc7a581faefa1f6f07cf06830d5304) feat: create redis adapter as secondary database - [`39438ed`](https://github.com/better-auth/better-auth/commit/39438ed0062da936e70154e45735b9965c4d206b) fix: improve mistakes in doc and test file - [`1914407`](https://github.com/better-auth/better-auth/commit/1914407d57be09a60bc5ca13011a562369f0217b) fix: improve redis doc - [`4c8e86a`](https://github.com/better-auth/better-auth/commit/4c8e86a3b59ba6af59447f2f772afd857613a0be) feat: update redis secondary adapter location and doc ### 📊 Changes **8 files changed** (+327 additions, -73 deletions) <details> <summary>View changed files</summary> 📝 `docker-compose.yml` (+10 -1) 📝 `docs/components/sidebar-content.tsx` (+23 -0) ➕ `docs/content/docs/secondary-adapters/redis.mdx` (+33 -0) 📝 `packages/better-auth/package.json` (+23 -10) ➕ `packages/better-auth/src/secondary-adapters/redis-adapter/index.ts` (+1 -0) ➕ `packages/better-auth/src/secondary-adapters/redis-adapter/redis-secondary-adapter.ts` (+66 -0) ➕ `packages/better-auth/src/secondary-adapters/redis-adapter/test/secondary-adapter.redis.test.ts` (+58 -0) 📝 `pnpm-lock.yaml` (+113 -62) </details> ### 📄 Description This PR introduces Redis adapter as a Secondary Database. It allow to add Redis in one line of code instead to have to do manual implementation. It use ioredis under the hood. ### Changes - Create Redis Adapter by implementing the `SecondaryStorage` interface - Create tests for the adapter - Add Redis in the `docker-compose.yml` - Add a page in the documentation --- <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 11:39:08 -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#4242