MichaCo / CacheManager

CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features.
http://cachemanager.michaco.net
Apache License 2.0
2.33k stars 458 forks source link

Difference between Microsoft.Extensions.Caching.Memory & SystemRuntimeCaching #269

Closed Jogai closed 3 years ago

Jogai commented 5 years ago

I have both in my project anyways, which brings me to the question, does one have an advantage over the other?

Second question, does CacheManager 1.2 work with Microsoft.Extensions.Caching.Memory 2.2?

MichaCo commented 5 years ago

Those two caches have very different implementations. The Extesions.Caching one uses ConcurrentDictionary, the SystemRuntimeCaching uses a shared memory buckets per Core as far as I know.

The Eviction and other configuration options are different two. Depends on the platform and use cases I guess.

Regarding the 2nd questions, it should.