# KeyDB

KeyDB is a distributed, Redis-compatible key-value database that adds true multi-master replication, letting any number of servers accept writes and replicate to each other. It is open source and self-hosted, installable on Kubernetes (Helm).

Canonical page: https://ourlocalhost.com/app/4748/keydb

## Description

KeyDB is a distributed, Redis-compatible key-value database that adds true multi-master replication, letting any number of servers accept writes and replicate to each other. It gives you fast in-memory data storage, caching, and session handling that scales horizontally across nodes, and it works as a drop-in replacement for Redis for developers and self-hosters who need high availability or are outgrowing Redis's single-master architecture.

## Platform availability

Available on 1 of 10 platforms: Helm.

## Health score

43/100 (Fair), based on 4 of 5 factors.
- Maintained: 2 (last commit 960 days ago)
- Popular: 82 (12,498 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)
- Security check: 95 (no serious findings, CI, tests)

## Links

- Documentation: https://docs.keydb.dev
- GitHub: https://github.com/Snapchat/KeyDB
- Official website: https://keydb.dev
- Kubernetes (Helm): https://artifacthub.io/packages/helm/enapter/keydb

## Common questions

### Should large binary blobs be stored in KeyDB?

No; the recommended pattern is to keep write-heavy small data in KeyDB and put big blobs in SQL or an eventually consistent on-disk database.

### How do I run commands against a local KeyDB instance?

Run keydb-cli followed by a command and its arguments to send the command to the KeyDB instance on localhost port 6379. Use --help to check host and port options.

### Why might a KeyDB server stop accepting connections after running for hours?

One report describes a KeyDB server becoming unresponsive after repeated service restarts with multiple applications connected. The process still runs, but it stops accepting new connections.

### How easy is migrating a web application from Redis to KeyDB?

A production user reports that KeyDB is a multi-threaded Redis fork and that migrating a customer web application to it was successful and very easy.

## Alternatives

- CyberPath Sentinel: Filesystem-backed document DBMS in Rust where every record is a Git-versionable JSON file with automatic cryptographic integrity for compli…
- MongoDB: MongoDB is an open-source, document-oriented NoSQL database that stores flexible, JSON-like documents, helping developers and self-hosters…
- Redis: Redis is a fast, in-memory data structure store that can be used as a database, cache, and message broker.
- Valkey: Valkey is an open-source, high-performance in-memory key-value datastore forked from Redis.
- memcached: Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls,…
- ncache: NCache is a fast, scalable, open-source distributed cache for .NET applications that keeps frequently used data in a shared in-memory pool…

---
Source: Our Local Host (https://ourlocalhost.com/app/4748/keydb), the self-hosted and open-source app directory.
