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

User defined cache key generator #15

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

Conversation

atoncetti
Copy link

@atoncetti atoncetti commented Sep 28, 2023

Adds the possibility to change the cache key with a new option field cache_key_generator.

This makes it possible to cache two requests to the same URL http://foo.com/?q=1 based on other information in the request, for example, different headers.

Use case example: caching requests to the same URL but performed by different users (different authentication headers).

Other changes:

  • Update deps
  • Add formatter support
  • Improve testing setup

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.

1 participant