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

Add support for per-request expiration #49

Merged
merged 1 commit into from
Apr 8, 2021
Merged

Add support for per-request expiration #49

merged 1 commit into from
Apr 8, 2021

Conversation

JWCook
Copy link
Member

@JWCook JWCook commented Apr 7, 2021

Closes #45 , and does some of the prep work needed for #30 and #32.

Other changes:

  • Move all expiration logic into a separate module, and add more tests
  • If expire_after is numeric, expect in in seconds instead of hours (for consistency with Cache-Control)
  • Add some more unit test coverage for CacheBackend

@JWCook JWCook added the enhancement New feature or request label Apr 7, 2021
@JWCook JWCook added this to the v0.3 milestone Apr 7, 2021
@JWCook JWCook marked this pull request as draft April 7, 2021 20:53
@JWCook JWCook force-pushed the cache-control branch 5 times, most recently from a05f119 to 2971a00 Compare April 8, 2021 00:04
* Move all expiration logic into a separate module, and add more tests
* If `expire_after` is numeric, expect in in seconds instead of hours (for consistency with Cache-Control)
* Add some more unit test coverage for CacheBackend
@JWCook JWCook changed the title Add support for per-request expiration, and related refactoring Add support for per-request expiration Apr 8, 2021
@JWCook JWCook marked this pull request as ready for review April 8, 2021 16:54
@JWCook JWCook merged commit 575ee00 into main Apr 8, 2021
@JWCook JWCook deleted the cache-control branch April 8, 2021 16:56
JWCook added a commit that referenced this pull request Apr 16, 2021
Add support for per-request expiration
JWCook added a commit that referenced this pull request May 17, 2021
Add support for per-request expiration
JWCook added a commit that referenced this pull request May 18, 2021
Add support for per-request expiration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to set expiration for an individual request
1 participant