Use the MsgPack serialization with StackExchange.Redis. NuGet Package

StackExchange.Redis.Extensions is a library that extends StackExchange.Redis with higher-level APIs for common application scenarios.

Features:
- Store and retrieve complex .NET objects with pluggable serialization
- Connection pooling with LeastLoaded and RoundRobin strategies
- Pub/Sub messaging with typed handlers and error logging
- Redis Streams with consumer group support
- GeoSpatial indexes (GEOADD, GEOSEARCH, GEODIST)
- Hash field expiry (Redis 7.4+ HEXPIRE/HSETEX)
- Transparent compression (LZ4, Snappy, Zstd, GZip, Brotli)
- Azure Managed Identity support
- ASP.NET Core DI integration
- Multiple named Redis instances
- Tags, Sets, Lists, Sorted Sets, key search

Serializer packages (pick one): System.Text.Json, Newtonsoft, MemoryPack, MsgPack, Protobuf, ServiceStack, Utf8Json.




Got any Use the MsgPack serialization with StackExchange.Redis. Question?





Info

Version: 12.1.0
Author(s): Ugo Lattanzi
Last Update: Saturday, April 11, 2026
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/imperugo/StackExchange.Redis.Extensions
NuGet Url: https://www.nuget.org/packages/StackExchange.Redis.Extensions.MsgPack


Install
Install-Package StackExchange.Redis.Extensions.MsgPack
dotnet add package StackExchange.Redis.Extensions.MsgPack
paket add StackExchange.Redis.Extensions.MsgPack
StackExchange.Redis.Extensions.MsgPack Download (Unzip the "nupkg" after downloading)

.NETStandard 2.0 net461 net472 netcoreapp3.0 netcoreapp3.1 3 packages depend on this package.


Tags



STATS

must-have-score

4.8

avg-downloads-per-day

560

days-since-last-release

30