Skip to content

Add support for multiple cache backends and cache_name param in ratel… #329

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

slothJain
Copy link

Description

Add support for specifying a cache_name parameter in the @ratelimit decorator and core functions, enabling the use of multiple cache aliases for rate limiting. This allows users to select which Django cache backend to use for storing rate limit data.

Changes

  • Added cache_name parameter to decorator and core functions.
  • Updated system checks to validate multiple cache configurations.
  • Improved documentation and added relevant tests.

Motivation

This change increases flexibility for projects using multiple cache backends and improves scalability for distributed environments.

Checklist

  • Tests added/updated
  • Documentation updated
  • Backward compatible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants