ZiggyCreatures / FusionCache

FusionCache is an easy to use, fast and robust hybrid cache with advanced resiliency features.
MIT License
1.87k stars 96 forks source link

[BUG] Adaptive Options Should Be Respected on Error #277

Closed cmeyertons closed 3 months ago

cmeyertons commented 3 months ago

Describe the bug

Currently, adaptive options are not respected on an exception.

This prevents application code from performing dynamic fail-safe logic based on the exception that was thrown (#275 )

To Reproduce

I have provided a PR with tests that were broken until illustrating the behavior (#276)

Expected behavior

Adaptive options are now respected on error, allowing for dynamic fail-safe enablement

Versions

I've encountered this issue on:

jodydonetti commented 3 months ago

Hi @cmeyertons , thanks for pointing out this edge case. I just reviewed + merged your PR, thanks a lot!

jodydonetti commented 3 months ago

Hi all, v1.3.0 is out 🥳