Garnet
microsoft.github.io
- Free plan
- Windows
- macOS
- Linux
- Self-hosted
What Garnet is
Garnet is a free remote cache-store from Microsoft Research for teams building applications that need a cache. It uses the RESP protocol and works with many unmodified Redis clients, including StackExchange.Redis. Its APIs cover strings, lists, hashes, sets, sorted sets, geo operations, HyperLogLog, bitmaps, ACLs, pub/sub, transactions, and Lua scripting. Garnet can store datasets larger than memory using local or cloud storage, with checkpointing and recovery. Multi-node clusters support sharding, state migration, and replication. Developers can register C# data structures and read-modify-write operations through a custom operator framework. TLS/SSL connections and RESP password authentication are supported. DiskANN vector database support and Bf-Tree range indexes are marked as preview. Garnet is not meant to be a fully compatible Redis drop-in replacement and does not support Redis modules. The MIT-licensed project is self-hosted, so users manage infrastructure, updates, and operations. Azure Cosmos DB Garnet Cache is a managed option in expanded Private Preview, with no price listed.
Who it suits
Garnet suits developers and operators who want a self-hosted cache-store with RESP client compatibility, persistence, and clustering. It is less suitable when full Redis drop-in compatibility or Redis modules are required.
Good to know, and what to watch
- Works with many unmodified Redis clients.
- Supports datasets larger than memory.
- Cluster mode supports sharding and replication.
- Provides checkpointing and recovery.
- Licensed under the MIT License.
- It is not a fully compatible Redis replacement.
- Redis modules are not supported.
- Self-hosted users manage operations and updates.
- Vector and range-index features are preview.
Plans
Every plan and priceAzure Cosmos DB Garnet Cache
Garnet
Free plan
Getting started
- Open the Garnet project website
- Choose Linux, macOS, or Windows deployment
- Run Garnet as a self-hosted service
- Connect using a RESP-compatible client
- Configure storage, checkpointing, recovery, or cluster features as needed
Limits to check
The free Garnet plan is self-hosted, so infrastructure, updates, and operations remain your responsibility. Garnet also lacks Redis-module support and full Redis drop-in compatibility; DiskANN and Bf-Tree support are preview features.
The Club's review
Garnet is a self-hosted remote cache-store for developers building low-latency applications. It is most compelling for teams that want broad data APIs and persistence without a license fee; its incomplete Redis compatibility makes it a poor fit when exact Redis parity is required.
Overview
Developed by Microsoft Research and licensed under MIT, Garnet uses RESP and works with many unmodified Redis clients, including StackExchange.Redis. That can let applications keep familiar client libraries, but it does not make Garnet a drop-in replacement: Redis modules are unsupported, and compatibility is not complete. Check the commands and behavior your application relies on before choosing it.
The free Garnet plan is self-hosted, so users manage infrastructure, updates and operations. Teams that prefer a managed service can consider Azure Cosmos DB Garnet Cache, which handles provisioning, scaling, patching and monitoring. It is in expanded Private Preview, so it is not the straightforward production alternative for teams that need a generally available managed service.
Key features
Broad data APIs and client libraries
Garnet covers strings, lists, hashes, sets, sorted sets, geo operations, HyperLogLog, bitmaps, ACLs, pub/sub, transactions and Lua scripting. Documented clients include StackExchange.Redis, Jedis, Redisson, redis-py, node_redis and go-redis. This breadth makes it relevant to applications with varied key-value workloads, while compatibility limits still call for checking specific application requirements.
Persistence and clustering
It can store datasets larger than memory using local or cloud storage, and supports checkpointing and recovery. Multi-node cluster mode adds sharding, state migration and replication. These capabilities can suit workloads that need persistence and distributed operation in a cache store; they also mean the self-hosting team takes on the associated infrastructure and operational responsibilities.
Extensibility and preview capabilities
A custom operator framework lets developers register C# data structures and read-modify-write operations, a useful distinction for teams that want to extend the store with application-specific behavior. Vector database support using DiskANN and range indexes using Bf-Tree are marked preview. Treat those as evaluation features rather than foundations for a workload that requires mature, production-ready indexing.
Security
TLS/SSL connections and RESP password-based authentication provide transport protection and password authentication. These are relevant safeguards for connected deployments, but do not remove the need for teams to manage their own deployment and operations when self-hosting.
Pricing
| Plan | Price | What it includes | Best suited to |
|---|---|---|---|
| Garnet | Free | Self-hosted software; you manage infrastructure, updates and operations. | Teams able to operate their own deployment and seeking a free, MIT-licensed cache store. |
| Azure Cosmos DB Garnet Cache | Custom pricing | Billed per instance per hour using per-node SKU pricing, with no licensing fees; disk is billed separately when persistence is enabled. Expanded Private Preview. | Teams seeking managed provisioning, scaling, patching and monitoring that can work with a preview service. |
The free plan has no license charge, but infrastructure and operating work remain with the user. The managed option shifts those responsibilities to Azure, while its preview status and separately billed disk when persistence is enabled matter to adoption and cost planning.
Platforms
Garnet supports Linux, macOS and Windows, and is available as self-hosted software. The deployment model is a meaningful part of the decision: the free plan does not include managed operation.
Who it's for
Garnet suits developers and IT teams that can run a cache service themselves and want broad Redis-client access, persistence, recovery, cluster features or C# extensibility without a software license fee. It is less suitable for organizations that require Redis modules, complete Redis compatibility, or production-critical use of its preview vector and range-index features. Teams wanting automated infrastructure operations may consider Azure Cosmos DB Garnet Cache, while accounting for its expanded Private Preview status.
Pros and cons
- Pro: Broad data APIs and documented clients, including common Redis libraries, can support a range of application workloads.
- Pro: Persistence beyond memory, checkpointing, recovery and multi-node cluster capabilities give self-hosting teams options beyond a basic in-memory cache.
- Pro: The MIT-licensed self-hosted plan costs nothing.
- Con: Self-hosting leaves infrastructure, updates and operations to the user.
- Con: It is not a fully compatible Redis replacement and does not support Redis modules, ruling it out for some existing deployments.
- Con: Vector database and range index support are preview features, so they are not the safe choice for workloads requiring established production capabilities.
- Con: The managed Azure service is in expanded Private Preview and bills disk separately when persistence is enabled.
Alternatives
For a managed Redis-compatible option with a free tier, compare Aiven for Valkey: its Free plan is free and includes one dedicated VM, one CPU and 1 GB RAM, but has no specific cloud or region and includes no integrations or connection pooling. Choose it when those defined limits fit better than operating Garnet yourself.
Alibaba Cloud Tair is a paid service with a free trial; its Open Source Edition trial is for new users, lasts 30 days, and provides 1 GB RAM with Redis OSS 5.0, 6.0 or 7.0 on cloud-native deployment. It is worth comparing when a time-limited cloud trial of those Redis OSS versions better matches the evaluation need.
Ristretto is a free, open-source Go in-process cache, making it the more relevant choice when an application needs an in-process library rather than a remote cache service. Squid is free self-hosted proxy software, suited to readers looking for a proxy rather than Garnet's cache-store APIs. Apache Traffic Server is another free self-hosted option to compare when a traffic server is the target. Ehcache is free, open-source software under Apache 2.0 for readers evaluating another self-hosted cache.
Amazon ElastiCache is a paid service with a free tier; new AWS Free Tier signups can choose a Free Plan with $100 in credits and may receive up to an additional $100 for activating f. Accessibility Test Framework for Android is an alternative in the directory, though its focus differs from Garnet's.
Browse the full Caching Software category to compare further options.
Verdict
Choose Garnet if you want a free, MIT-licensed remote cache with broad data APIs, persistence and cluster features, and your team can operate it. Its strongest reason to choose is that breadth without a license fee; its strongest reason to look elsewhere is incomplete Redis compatibility, especially the lack of Redis modules. For a managed route, Azure Cosmos DB Garnet Cache automates operations, but its expanded Private Preview status makes it a more cautious choice.
The verdict
Garnet offers broad data APIs, persistence, and cluster features in a free, self-managed package. Check its compatibility limits and preview status for specific features before adopting it.
Questions people ask
What does Garnet cost?
The Garnet self-hosted plan is free at no cost. Azure Cosmos DB Garnet Cache is billed per instance per hour, with disk billed separately when persistence is enabled.
Which platforms support Garnet?
Garnet supports Linux, macOS, Windows, and self-hosted deployment.
Can existing Redis clients connect?
Yes. Garnet uses RESP and works with many unmodified Redis clients, including StackExchange.Redis, Jedis, Redisson, redis-py, node_redis, and go-redis.
Does Garnet persist data?
Yes. It supports local or cloud storage for datasets larger than memory, plus checkpointing and recovery.
Is Garnet open source?
The Garnet project is licensed under the MIT License.
Is there a managed Garnet service?
Azure Cosmos DB Garnet Cache manages provisioning, scaling, patching, and monitoring automatically and is in expanded Private Preview.
What the maker publishes
- Cluster features
- Multi-node cluster mode supports sharding, state migration, and replication. source
- Compatibility limit
- Garnet is not intended to be a fully compatible Redis drop-in replacement, and it does not support Redis modules. source
- Data APIs
- Its API includes strings, lists, hashes, sets, sorted sets, geo operations, HyperLogLog, bitmaps, ACLs, pub/sub, transactions, and Lua scripting. source
- Extensibility
- A custom operator framework lets developers register C# data structures and read-modify-write operations. source
- Founded
- 2024 source
- Integrations
- The documented Redis client libraries include StackExchange.Redis, Jedis, Redisson, redis-py, node_redis, and go-redis. source
- License
- The Garnet project is licensed under the MIT License. source
- Managed service
- Azure Cosmos DB Garnet Cache handles infrastructure provisioning, scaling, patching, and monitoring automatically; it is in expanded Private Preview. source
- Platforms
- The server is extensively tested on Windows and Linux, and is also described as running on Azure hardware and edge devices. source
- Preview features
- Vector database support using DiskANN and range index support using Bf-Tree are marked preview. source
- Protocol and clients
- Garnet uses the RESP protocol and works with many unmodified Redis clients, including StackExchange.Redis. source
- Purpose
- Garnet is a remote cache-store from Microsoft Research designed for high performance, extensibility, and low latency. source
- Security
- Garnet supports TLS/SSL connections and RESP password-based authentication. source
- Storage and recovery
- Garnet supports datasets larger than memory using local or cloud storage, along with checkpointing and recovery. source
- Support and community
- The project site links to Discord and GitHub for community and project information. source
Checked against the maker's pages on 29 Sept 2026.