Skip to content

Releases: armutcom/CacheManager.Serialization.Hyperion

CacheManager.Serialization.Hyperion v1.2.0

18 Dec 13:10
1057238
Compare
Choose a tag to compare
  • Packages updated
  • .Net Core 3.0 and 3.1 supports added
  • .Net Standard 2.1 support added

CacheManager.Serialization.Hyperion v1.0.1

16 May 08:55
dc30be8
Compare
Choose a tag to compare

CacheManager.Serialization.Hyperion

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

Installation

NuGet

To install CacheManager.Serialization.Hyperion, run the following command in the Package Manager Console

Install-Package CacheManager.Serialization.Hyperion

Usage

WithHyperionSerializer extension method can be used as below

var cache = CacheFactory.Build("armutCache",
    settings =>
    {
       settings.WithHyperionSerializer().WithMicrosoftMemoryCacheHandle("memoryCache");
    });

Or HyperionSerializerSettings can be customize as below

var cache = CacheFactory.Build("armutCache",
    settings =>
    {
       settings
        .WithHyperionSerializer(new HyperionSerializerSettings(preserveObjectReferences:true, versionTolerance:true, ignoreISerializable:true))
        .WithMicrosoftMemoryCacheHandle("memoryCache");
    });