Commit 946bf1d
authored
deps(core): update dependency ziggycreatures.fusioncache to 2.4.0 (#939)
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
|
[ZiggyCreatures.FusionCache](https://redirect.github.com/ZiggyCreatures/FusionCache)
| `2.3.0` -> `2.4.0` |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>ZiggyCreatures/FusionCache
(ZiggyCreatures.FusionCache)</summary>
###
[`v2.4.0`](https://redirect.github.com/ZiggyCreatures/FusionCache/releases/tag/v2.4.0)
#### 🏷️ Add `StaleTags` to factory execution context
Community user
[@​ted-mundy](https://redirect.github.com/ted-mundy) noticed a
tricky behavior when using Tagging with stale entries (see next point).
To solve it, I added a new `StaleTags` property to the factory execution
context, so that now it's possible to access both the tags that are
being passed to the `GetOrSet()` call and the existing tags of the stale
entry in the cache (if any), like this:
```c#
cache.GetOrSet<string>(
"foo",
(ctx, token) => {
// THE TAGS PASSED BELOW ("tag1", "tag2" and "tag3")
ctx.Tags;
// THE TAGS OF THE STALE ENTRY ALREADY IN THE CACHE, IF ANY
ctx.StaleTags;
return "Combo";
},
tags: ["tag1", "tag2", "tag3"]
);
```
This can be useful even in other scenarios, like applying some custom
logic about what to do based on the tags already in the cache.
Nice.
#### 🐞 Fix for tags with stale entries
As mentioned above, community user
[@​ted-mundy](https://redirect.github.com/ted-mundy) noticed a
tricky behavior when using Tagging with stale entries.
Thanks to the addition of the new `StaleTags` property, this is now
solved for good.
Thanks [@​ted-mundy](https://redirect.github.com/ted-mundy) !
See
[here](https://redirect.github.com/ZiggyCreatures/FusionCache/issues/515)
for the original issue.
#### 1 parent 54b0cd7 commit 946bf1d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
0 commit comments