Skip to content

CacheManager extension package providing polymorphic (de)serialization support using Hyperion for distributed caches. The Hyperion serializer can be used in place of the default Binary Serializer.

License

Notifications You must be signed in to change notification settings

armutcom/CacheManager.Serialization.Hyperion

Repository files navigation

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

Builds status

Linux Windows
Build Build Status Build status

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");
    });

License

Licensed under MIT, see LICENSE for the full text.

About

CacheManager extension package providing polymorphic (de)serialization support using Hyperion for distributed caches. The Hyperion serializer can be used in place of the default Binary Serializer.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published