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 457 forks source link

Json serializer does not support on redis? #336

Closed ekondur closed 3 years ago

ekondur commented 3 years ago

Hi, I use cache manager with redis on mvc project, when I add serializerType Json attribute on config (for some performance concerns), nothing writes to redis. I realized that CacheManager.Serialization.Json package missing and I added it but did not work again. Json serializer does not support on redis?

<managers>
    <cache name="xxx" updateMode="Up" enableStatistics="true" enablePerformanceCounters="true" serializerType="Json">
       <handle ref="redisCache" name="redisConnectionString" expirationMode="Sliding" timeout="2h" />
    </cache>
</managers>
ekondur commented 3 years ago

It causes LoadConfiguration method, when add serializerType this method throws exception.