Skip to content

Garnet

RESP-compatible cache-store in C# for teams that want Redis clients with

Permissive (OSI) · MIT
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

82

Health

Thriving

Overview

Stars

12,101

Last commit

today

Nov 2026

Repository age

3 years

since Aug 2023

Latest version

v2.2.14

Nov 2026

Contributors

–

18 active in 90 days

Releases

24

last 12 months

Language

C#

Garnet is a remote cache-store from Microsoft Research, written in C# on .NET. It speaks the RESP wire protocol, so unmodified Redis clients such as StackExchange.Redis can connect to it. It runs on Linux, macOS and Windows, ships a Docker image and is available as a Homebrew formula.

It covers raw strings with key expiration, HyperLogLog and bitmap operations, and object types such as sorted sets and lists. You get client-side RESP transactions, server-side stored procedures and modules written in C#, and Lua scripting. The storage layer, Tsavorite, supports tiered storage across memory, SSD and cloud storage, plus checkpointing, recovery and operation logging. Cluster mode adds sharding, replication and dynamic key migration. TLS and basic access control are included.

Garnet is a direct replacement candidate for Redis when your stack is .NET or Azure. Not every Redis command or module is supported. Vector sets and range indexes are in preview. It uses the MIT license.

Who it's for

.NET teams running Redis for caching

You keep your existing RESP clients and can write custom extensions in C#.

Skip if: You rely on Redis modules or commands that Garnet does not implement.

Operators with datasets larger than RAM

Tiered storage lets data spill to SSD or cloud storage instead of requiring all of it in memory.

Skip if: Your data fits comfortably in memory and you want the most widely deployed option.

Azure users who might later want a managed service

Microsoft offers a managed Garnet cache on Azure Cosmos DB.

Skip if: You need to stay off Azure and want a vendor-neutral managed offering.

The problem it solves

Redis caches get expensive as connection counts and data size grow, and holding everything in memory limits dataset size. Garnet keeps the Redis client protocol while adding tiered storage and a design aimed at many connections with small batches.

Strengths

  • Works with unmodified Redis clients through the RESP protocol
  • Tiered storage across memory, SSD and cloud storage
  • Cluster mode with sharding, replication and key migration
  • Custom operations and stored procedures in C#, plus Lua scripts
  • MIT license; 23 releases in the last year

Trade-offs

  • Not every Redis command or module is supported
  • Search and time series are less complete than in Redis
  • Vector sets and range indexes are still preview features
  • Project began in 2023, so it has a shorter track record

Garnet replaces

Self-host Garnet

Self-hostable
Yes
Docker Compose
The repository ships a Compose file
Kubernetes
Helm chart available

Frequently asked questions

Is Garnet free?

Yes. It is released under the MIT license. Microsoft also offers a paid managed version on Azure Cosmos DB.

Can I use my existing Redis client?

Yes. Garnet uses the RESP protocol, so unmodified clients such as StackExchange.Redis connect to it.

Can I self-host it?

Yes. You can run it on Linux, macOS or Windows, from a Docker image, or install it with Homebrew.

Does it support clustering?

Yes. Cluster mode supports sharding, replication and dynamic key migration.

Other Redis alternatives

Compare all 5 Redis alternatives →

Similar tools in NoSQL databases

KeyDB

NoSQL databases

Multithreaded Redis fork for teams wanting higher throughput on the same hardware

13k 677 3 years ago Dormant BSD-3-Clause

kapacitor

NoSQL databases

Stream and batch processing and alerting engine for InfluxDB time series data

2.4k 475 7 days ago Thriving MIT

OpenTSDB

NoSQL databases

Time series database on HBase for storing large volumes of system metrics

5.1k 1.2k 2 years ago Dormant LGPL-2.1

HelixDB

NoSQL databases

Graph database with built-in vector and keyword search for AI app developers

6.3k 402 yesterday Thriving Apache-2.0

Dragonfly

NoSQL databases

Multi-threaded in-memory data store with Redis and Memcached APIs for high-throughput

32k 1.3k today Thriving BUSL-1.1

Replaces Redis

ssdb

NoSQL databases

Disk-based key-value database with Redis client support, for large datasets

8.3k 1.4k 5 years ago Dormant BSD-3-Clause