CacheManager extension package providing polymorphic (de)serialization support using Hyperion for distributed caches. CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features, the Hyperion serializer can be used in place of the default Binary Serializer
| Linux | Windows | |
|---|---|---|
| Build |
To install CacheManager.Serialization.Hyperion, run the following command in the Package Manager Console
Install-Package CacheManager.Serialization.Hyperion
WithHyperionSerializer extension method can be used as below
varcache=CacheFactory.Build("armutCache",
settings =>{settings.WithHyperionSerializer().WithMicrosoftMemoryCacheHandle("memoryCache");});Or HyperionSerializerSettings can be customize as below
varcache=CacheFactory.Build("armutCache",
settings =>{settings.WithHyperionSerializer(newHyperionSerializerSettings(preserveObjectReferences:true,versionTolerance:true,ignoreISerializable:true)).WithMicrosoftMemoryCacheHandle("memoryCache");});Licensed under MIT, see LICENSE for the full text.