-
Notifications
You must be signed in to change notification settings - Fork 175
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
Adding refreshThreshold Parameter to the wrap Function #606
Adding refreshThreshold Parameter to the wrap Function #606
Comments
@eternasuno - can you give a couple examples of this use case? |
For example, I cached an authentication token, which expires after 2 hours. Therefore, the refreshThreshold should be set to 0. On the one hand, I have some caches that need to update their expiration time, but they cannot do so when there is only a unified refreshThreshold. |
+1 for this feature. I have created a little WIP PR: #630 I think the need of refreshThreshold parameter is linked to what is the right usage of cache-manager. |
The cache's TTL can vary significantly, for instance, between 5 minutes and 1 day. It's challenging to determine a single, unified refreshThreshold setting for all use cases. Therefore, adding a separate refreshThreshold parameter to the wrap function could be a valuable enhancement.
The text was updated successfully, but these errors were encountered: