Use the Newtonsoft Json.Net serialization with StackExchange.Redis. NuGet Package

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

Compatible with StackExchange.Redis 2.x and 3.x.

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)
- HyperLogLog for probabilistic cardinality estimation
- Distributed locking with IAsyncDisposable auto-release
- Bitmap operations for analytics and feature flags
- Lua scripting for atomic server-side operations
- 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 Newtonsoft Json.Net serialization with StackExchange.Redis. Question?





Info

Version: 13.0.1
Author(s): Ugo Lattanzi
Last Update: Monday, August 3, 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.Newtonsoft


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

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


Tags



STATS

must-have-score

4.3

avg-downloads-per-day

5123

days-since-last-release

17