# Garnet

> Microsoft Research's Redis-compatible cache-store, built on .NET

Source: https://talira.ai/catalog/garnet-h4yxwzyv
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Database
- Categories: [databases / key value](https://talira.ai/categories/databases/key-value)
- Platforms: linux, windows[^2]
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source; Azure Cosmos DB Garnet Cache is a paid managed service.
- Free tier: yes[^1]
- Self-hostable: yes[^2]
- Plugins: yes[^2]
- Backed by: [Microsoft](https://talira.ai/orgs/microsoft.md)
- Funding: public company (NASDAQ:MSFT)[^3]

Garnet is a remote cache-store from Microsoft Research that speaks Redis's RESP wire protocol, so unmodified Redis clients work with it. It aims at high throughput with many client connections and very low tail latency, and runs on Linux and Windows on .NET. It supports strings with expiry, HyperLogLog, bitmaps, sorted sets, lists and other objects, client-side transactions, Lua scripts, and server-side stored procedures, modules and custom commands written in C#. Its Tsavorite storage engine adds tiered storage (memory, SSD and cloud), checkpointing and recovery, and it supports TLS, basic access control and cluster mode with sharding, replication and key migration. Vector sets (approximate nearest-neighbour search on DiskANN) and range indexes are in preview. Azure Cosmos DB Garnet Cache is the managed service.

## Links

- Website: https://microsoft.github.io/garnet/
- GitHub: https://github.com/microsoft/garnet
- Docs: https://microsoft.github.io/garnet/docs

## Problems it solves

- a faster drop-in replacement for Redis that my existing Redis clients can talk to
- a cache server that handles many client connections with low tail latency
- write custom cache commands in C# instead of Lua
- a Redis-compatible store that can spill to SSD or cloud storage

## Features

- RESP protocol: works with existing Redis clients
- strings, HyperLogLog, bitmaps, sorted sets, lists and other objects
- Lua scripts, transactions, and stored procedures and custom commands in C#
- Tsavorite storage: tiered memory, SSD and cloud storage, checkpointing
- cluster mode with sharding, replication and key migration
- TLS and basic access control
- vector sets and range indexes (preview)

## Capabilities

- Takes plugins: plan not known

## Trust

Overall: 0.42 out of 1.
Signals: backing 0.55, extensibility 0.20.

- backed by Microsoft
- funding: public company (NASDAQ:MSFT)
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Valkey](https://talira.ai/catalog/valkey-21xnmrxe.md): An open source (BSD) high-performance key/value datastore
- [Dragonfly](https://talira.ai/catalog/dragonfly-anqs23rc.md): The world's most efficient in-memory data store
- [Redis](https://talira.ai/catalog/redis-v917j45s.md): The preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine
- [Apache Kvrocks](https://talira.ai/catalog/apache-kvrocks-0ea3eh70.md): A distributed key value NoSQL database compatible with the Redis protocol

## Sources

[^1]: https://github.com/microsoft/garnet/blob/main/LICENSE (checked 24 Nov 2026)
[^2]: https://github.com/microsoft/garnet (checked 24 Nov 2026)
[^3]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
