Repolode
StackExchange

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. 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