Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 653 Bytes

File metadata and controls

27 lines (18 loc) · 653 Bytes

MemoryPack

Zero encoding extreme performance binary serializer for C# and Unity.

Install

dotnet add package StackExchange.Redis.Extensions.MemoryPack
<PackageReference Include="StackExchange.Redis.Extensions.MemoryPack" Version="12.*" />

Setup

If you are using the StackExchange.Redis.Extensions.AspNetCore package, register it via the built-in extension method in your Program.cs:

builder.Services.AddStackExchangeRedisExtensions<MemoryPackSerializer>(redisConfiguration);

Otherwise, register the serializer manually:

services.AddSingleton<ISerializer, MemoryPackSerializer>();