Repository navigation
v0.21.0-preview2
Pre-release⚠ PRE-RELEASE
This is a pre-release of FusionCache, so please be aware that although it contains some shiny new stuff (see below), it is also subject to change before the final release.
Having said that, you should also know that this version is already very polished, the api design surface area well modeled, performance-tuned, with full xml-docs and it has all the bells and whistles of a normal release.
🔂 Conditional Refresh
FusionCache now fully supports conditional refresh, which is conceptually similar to conditional requests in HTTP.
Basically it is a way to cache and re-use either an ETag, a LastModified date or both, so that it is possible to save resources by not fully getting a remote resource (think: a remote http service response) in case it was not changed since the last time we got it.
Thanks to the community member @aKzenT for the invaluable help with the design discussion.
See here for the issue.
🦅 Eager Refresh
It is now possible to tell FusionCache to eagerly start refreshing a value in the cache even before it's expired, all automatically and in the background (without blocking).
For example we can tell FusionCache to cache something for 10 min but eagerly start refreshing it after 90% of that (9 min) in the background, as soon as a GetOrSet(...) call is made after the specified threshold: in this way the fresh data will be ready earlier, and without having to wait for the refresh to complete when it would've expired.
Both eager refresh and the usual normal refresh + factory timeouts can be combined, without any problems.
See here for the issue.
📞 Added EagerRefresh event
A new event has been added, for when eager refresh actually occurs.
📜 Added WithoutLogger() builder method
With the introduction of the Builder in the v0.20.0 release, something was missing: a way to tell FusionCache to not use a logger, at all: now this is fixed.
Thanks to community member @sherman89 for pointing that out.
See here for the issue.