Skip to content
New issue

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

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

Already on GitHub? # to your account

Feature Request: Set Expiration for Cache Objects #8

Open
dannyhyatt opened this issue Feb 7, 2023 · 1 comment
Open

Feature Request: Set Expiration for Cache Objects #8

dannyhyatt opened this issue Feb 7, 2023 · 1 comment

Comments

@dannyhyatt
Copy link

Would love a feature that includes a parameter in CacheOptions along the lines of timeToRefresh where I can set how many seconds an image should be in a cache before it's refreshed.

@imsamgarg
Copy link
Owner

Great idea. I would consider this idea. I'm just thinking of adding a field something like 'expireAfter' or 'maxAge' or like you said 'timeToRefresh'. And let a user pass the 'Duration' object to that. After that time period passed away the cached object will be automatically refreshed.

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

No branches or pull requests

2 participants