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

Support for setting variable refresh time for each entry #272

Closed
eugenemiretsky opened this issue Sep 24, 2018 · 2 comments
Closed

Support for setting variable refresh time for each entry #272

eugenemiretsky opened this issue Sep 24, 2018 · 2 comments

Comments

@eugenemiretsky
Copy link

Hi,

Is there support for something similar to #114, bit for refreshAfter. The use case is to prevent the data source from getting hit with many requests every refresh period, and instead spread the request more evenly.
For example, if the refresh period is 20min, and the traffic is fairly uniform, than every 20min there will be a burst of request to the system behind the cache.

@ben-manes
Copy link
Owner

This was recently requested in #261, if I understand the requests correctly. Currently there isn't built-in support and I agree it's a pretty good idea. The implementation is probably not too difficult either, but I haven't had bandwidth to work on this library lately.

@ben-manes
Copy link
Owner

Consolidating into #504

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

No branches or pull requests

2 participants