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 more CacheExpiry options #38

Open
mortenholmgaard opened this issue Oct 16, 2015 · 2 comments
Open

Add more CacheExpiry options #38

mortenholmgaard opened this issue Oct 16, 2015 · 2 comments

Comments

@mortenholmgaard
Copy link

It would be nice if you added a few more CacheExpiry values like: Hours, Days, Months, Years

@aschuch
Copy link
Owner

aschuch commented Oct 16, 2015

Good idea. Do you want to give this a shot and submit a pull request?

@sergii-frost
Copy link

Do you think it could be useful to add support of saving actually time when object has been initially cached and remove objects which time expires in the past since now, but not in future?

Use case:

  • initially cache period could be set to large value, e.g. 1 year
  • later there is a need to clean the cache for all the objects older than 30 days (but initially cached values will not be touched until 1 year since day when they were cached)
  • such approach makes it available adding option to the application to quickly change expiration date for objects older than X days/months/whatever

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

No branches or pull requests

3 participants