alastairtree / LazyCache

An easy to use thread safe in-memory caching service with a simple developer friendly API for c#
https://nuget.org/packages/LazyCache
MIT License
1.72k stars 159 forks source link

bug: if you change the type of the cache item the old item gets evicted #106

Closed alastairtree closed 4 years ago

alastairtree commented 4 years ago

Basically sensible use of lazy cache should not hit this - but if you are unusual and cache 2 incompatible types with one key this fixes the weirdness of unexpected nulls

fixes #46