Java client for Valkey and Redis that adds distributed collections, locks, queues, and services on top of the base commands.
StackExchange/StackExchange.Redis
A .NET client library for connecting to Redis and other RESP-compatible servers such as Valkey, Garnet and AWS ElastiCache.
- Stars
- 6,206
- Forks
- 1,562
- Open issues
- 220
- Last commit
- 17 hours ago
What is it?
StackExchange.Redis is a .NET client for talking to Redis and other RESP-compatible servers. Besides Redis itself, it is intended to work with Azure Managed Redis, Garnet, Valkey and AWS ElastiCache, and with any server that exposes a Redis-like API.
The library is distributed as the StackExchange.Redis NuGet package. Its documentation is hosted at seredis.dev, which covers configuration and usage. The project is written in C# and released under the MIT license.
Use it when a .NET application needs to read and write data in a Redis-compatible store, for example for caching, session storage or messaging. Servers outside the list of named products are not formally supported, but the project invites issue reports for compatibility problems.
Key features
- 01Connects to Redis and RESP-compatible servers from .NET applications.
- 02Distributed as a NuGet package with stable and pre-release versions.
- 03Documentation available at seredis.dev.
- 04Open-source under the MIT license.
Use cases
- Adding Redis-backed caching to an ASP.NET or other .NET service.
- Connecting a .NET app to a managed cloud Redis service such as AWS ElastiCache or Azure Managed Redis.
- Using Valkey or Garnet as the data store from C# code.
Quick start
- 1
Install the StackExchange.Redis NuGet package
Topics
FAQ
- What is StackExchange.Redis?
- A .NET client library for connecting to Redis and other RESP-compatible servers such as Valkey, Garnet and AWS ElastiCache. StackExchange.Redis is a .NET client for talking to Redis and other RESP-compatible servers. Besides Redis itself, it is intended to work with Azure Managed Redis, Garnet, Valkey and AWS ElastiCache, and with any server that exposes a Redis-like API.
- Is StackExchange.Redis free to use? What license does it have?
- StackExchange.Redis is open source under the MIT license. Check the license terms before using it in commercial products.
- Is StackExchange.Redis still maintained?
- Actively maintained. The last commit to StackExchange.Redis was on Nov 6, 2026.
- What can I use StackExchange.Redis for?
- Adding Redis-backed caching to an ASP.NET or other .NET service. Connecting a .NET app to a managed cloud Redis service such as AWS ElastiCache or Azure Managed Redis. Using Valkey or Garnet as the data store from C# code.
- How do I install StackExchange.Redis?
- Install the StackExchange.Redis NuGet package
- Where can I get StackExchange.Redis?
- The source code and installation instructions are on GitHub: https://github.com/StackExchange/StackExchange.Redis
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A high-performance, Redis-compatible key-value data structure server forked from Redis, aimed at caching and realtime workloads.
A native, GPU-accelerated Redis and Valkey GUI built with Rust and GPUI, designed to browse very large key sets smoothly.
A .NET client library for Redis, with Redis Sentinel and Cluster support and both synchronous and asynchronous APIs.
An in-memory data store that is API-compatible with Redis and Memcached, aiming to be a drop-in replacement for both.
A C# remote cache-store that speaks the Redis RESP protocol, so existing Redis clients can connect to it without changes.