We've started using this in a project, and I am wondering after an item expires, if it's corresponding Func not called again to repopulate? It would be nice if it was kept around to repopulate after expiration.
We are creating a generic cache, where I can key by typeof(T).FullName, with a func to call out to a web api and get the data. It works, until it expires.
Once it expires the web api is never hit again and it's gone forever. I'm guessing I probably just need to keep the func around and use GetOrAddAsync instead of GetAsync.
We've started using this in a project, and I am wondering after an item expires, if it's corresponding Func not called again to repopulate? It would be nice if it was kept around to repopulate after expiration.
We are creating a generic cache, where I can key by typeof(T).FullName, with a func to call out to a web api and get the data. It works, until it expires.
Once it expires the web api is never hit again and it's gone forever. I'm guessing I probably just need to keep the func around and use GetOrAddAsync instead of GetAsync.