Skip to content
SPECIFICTION
Get listed

Garnet vs Memcached

Garnet

microsoft.github.io

Memcached

memcached.org

Side by side

FigureGarnetMemcached
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
WindowsYes—
macOSYesYes
LinuxYesYes
API—Yes
Self-hostedYesYes
Plans published21
Spec score · Caching Software8.0 (#7)7.9 (#10)
Founded20242003
PurposeGarnet is a remote cache-store from Microsoft Research designed for high performance, extensibility, and low latency.Memcached is a distributed in-memory key-value cache intended to speed up dynamic web applications by reducing database load.

Plans

Garnet

  • GarnetFree
  • Azure Cosmos DB Garnet CachePriced on request

Garnet pricing →

Memcached

  • MemcachedFree

Memcached pricing →

In their own words

Garnet

Garnet is a free remote cache-store from Microsoft Research for self-hosted use on Linux, macOS, and Windows. It uses RESP and works with many unmodified Redis clients, including StackExchange.Redis; documented libraries also include Jedis, Redisson, redis-py, node_redis, and go-redis. Its data 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 on local or cloud storage and supports checkpointing and recovery. Multi-node mode provides sharding, state migration, and replication. Developers can register C# data structures and read-modify-write operations through its custom operator framework. TLS/SSL and password-based RESP authentication are supported. DiskANN vector database support and Bf-Tree range indexes are marked preview. Garnet is MIT-licensed, but is not intended as a fully compatible Redis replacement and does not support Redis modules. The self-hosted plan is free; you manage infrastructure, updates, and operations. The managed Azure Cosmos DB Garnet Cache is in expanded Private Preview, with no price listed.

Visit microsoft.github.io

Memcached

Memcached is a free, self-hosted in-memory key-value cache for reducing database load in dynamic web applications. It keeps small chunks of arbitrary data, such as strings, objects, and results from database calls, API calls, or page rendering. Clients use key-based hashing to choose a server, while servers operate independently without synchronization or replication. Items can expire after a specified time, and the default eviction policy is least recently used (LRU). The project describes Memcached as a developer tool, not code acceleration software or database middleware. Its API is available for most popular languages, and downloads include a source tarball and installation instructions with package prerequisites for Debian/Ubuntu and Red Hat/CentOS. TLS authentication and encryption are supported in version 1.5.13 and later when built with TLS and used with a TLS-capable client. Optional extstore moves values to external storage while keeping keys and the hash table in memory; it needs version 1.6.0 or newer. The project began in 2003. It is free and self-hosted, with no hosted plan or price listed.

Visit memcached.org