Closed viniciusvarzea closed 8 months ago
Hi @viniciusvarzea and thanks for using FusionCache!
What you are looking for is already implemented and is called Adaptive Caching.
Hope this helps.
Hi @viniciusvarzea , did it work?
@jodydonetti you are the best! It works
Problem
I need to set the cache duration after the factory is executed (based on the result of the factory) but before the result from factory be inserted in the cache.
Solution
Maybe accepts a action with the some context in method (GetOrSetAsync) as a parameter, that will be called after a factory runs but before the result of the factory be inserted in the cache.