Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📦 Introduce new adapter, redis-cache, to use any adapter behind a Redis Cache #12686

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

boul2gom
Copy link

@boul2gom boul2gom commented Feb 20, 2025

☕️ Reasoning

This PR introduces a new adapter, redis-cache, that allows the use of any adapter with a Redis cache. The goal is to provide a more efficient caching layer for database interactions, leveraging Redis to speed up database queries and improve overall performance. This adapter aims to offer seamless integration for developers who want to use caching through Redis, making it easier to manage sessions and cache data effectively.

Nevertheless, i don't know how to implement testing, because any adapter function rely on another adapter.
EDIT: I implemented some tests, based on prisma one's, but it requires a running Redis instance

🧢 Checklist

  • Documentation
  • Tests
  • Ready to be merged

🎫 Affected issues

📌 Resources

Copy link

vercel bot commented Feb 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
auth-docs ❌ Failed (Inspect) Feb 21, 2025 10:07am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview Feb 21, 2025 10:07am

Copy link

vercel bot commented Feb 20, 2025

@boul2gom is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added the adapters Changes related to the core code concerning database adapters label Feb 20, 2025
@boul2gom
Copy link
Author

Sorry, I saw that the auth-docs deployment on Vercel had failed, but I don't have permission to see why, so I can't fix it.

@boul2gom boul2gom changed the title 📦 Introduce new adapter, redis-prisma, to use Prisma with a Redis cache 📦 Introduce new adapter, redis-cache, to use any adapter behind a Redis Cache Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adapters Changes related to the core code concerning database adapters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant