-
Notifications
You must be signed in to change notification settings - Fork 73
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
Dynamically adjust cache duration? #869
Comments
@Leonardo-Ferreira Do you prefer to dynamically adjust sentinel key probing interval? |
@drago-draganov |
This is indeed the probing interval for registered settings (sentinel key) for refresh. Basically, how long to wait before checking again if modified. It controls the frequence of checks for refresh. Your configuration will not be reloaded, unless the sentinel key is updated, regardless of that frequency. |
thanks, but the question remains: can I adjust that dynamically? |
There isn't anything built-in at the moment to allow that. How would you prefer to adjust it dynamically? Ideal case. |
I see two good options that somewhat overlap each other:
The order of overwriting would be:
it would also be nice if:
|
Thanks for the suggestion, @Leonardo-Ferreira! We will look into it. As far as diagnostics, please follow Logging and Monitoring To detect reload of the configuration, you can use IConfiguration.GetReloadToken |
Is it possible to dynamically change the cache duration? I would like to have a configuration in app configuration to govern how frequently the cache should be renewed, and then I could adjust it without having to restart the app.
This is important because, for example, when we launch a new feature we decrease the cache to about 30s and as we get more confident about it, we up this to 1m, then 5m, then 10m... each one of these requires a whole new deploy
The text was updated successfully, but these errors were encountered: