Is there an alternative for Google Guava's LoadingCache in C# ?
.Net language features and external dlls will do it.
Is there an alternative for Google Guava's LoadingCache in C# ?
.Net language features and external dlls will do it.
The MemoryCache
class is one option - http://msdn.microsoft.com/en-us/library/system.runtime.caching.memorycache.aspx
You can set expiration policies and memory limits, I'm not sure if it encompasses all of the features of LoadingCache but it's probably close.