KeyDB: A Multithreaded, High-Performance Fork of Redis

Summary
KeyDB is a high-performance, multithreaded fork of Redis, designed for enhanced memory efficiency and high throughput. It maintains full compatibility with the Redis protocol, modules, and scripts, making it a seamless drop-in replacement. KeyDB also introduces advanced features like Active Replication and a MVCC architecture for non-blocking operations.
At a glance
- Added to OSRepos
- January 12, 2026
- Last analyzed
- January 12, 2026
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
KeyDB is a high-performance, multithreaded fork of Redis, developed with a strong focus on memory efficiency and high throughput. It maintains full compatibility with the Redis protocol, modules, and scripts, making it a drop-in replacement for existing Redis deployments. KeyDB offers advanced features such as Active Replication, FLASH Storage, and Subkey Expires, alongside a MVCC architecture that allows non-blocking queries like KEYS and SCAN. Recently, KeyDB became part of Snap Inc., further solidifying its development and open-source commitment.
Installation
KeyDB is primarily designed and tested for Linux environments, leveraging features like SO_REUSEPORT. To get started, first initialize and update submodule dependencies:
git submodule init && git submodule update
Next, install the necessary build dependencies. For Debian/Ubuntu systems, this typically involves:
sudo apt install build-essential nasm autotools-dev autoconf libjemalloc-dev tcl tcl-dev uuid-dev libcurl4-openssl-dev libbz2-dev libzstd-dev liblz4-dev libsnappy-dev libssl-dev
After dependencies are installed, compile KeyDB with a simple make command:
make
For specific configurations, such as systemd support, TLS, or FLASH storage, additional make flags are available. If you encounter build issues or need to rebuild with different options, make distclean is recommended to clear cached build options and dependencies.
Examples
Running KeyDB is straightforward. Navigate to the src directory and execute keydb-server:
cd src
./keydb-server
You can also specify a configuration file or pass command-line options:
./keydb-server /path/to/keydb.conf --port 9999
To interact with your KeyDB instance, use keydb-cli:
cd src
./keydb-cli
keydb> ping
PONG
keydb> set foo bar
OK
keydb> get foo
"bar"
keydb> incr mycounter
(integer) 1
A comprehensive list of commands is available in the KeyDB documentation.
Why use
KeyDB distinguishes itself by offering significantly higher throughput than Redis on the same hardware, leading to reduced operational costs and complexity. Its multithreaded architecture efficiently utilizes modern multi-core processors, while maintaining Redis protocol compatibility. Features like Active Replication simplify hot-spare failover and enable distributed writes across replicas. KeyDB's MVCC design ensures that operations like KEYS and SCAN do not block the database, preserving performance. The project's philosophy emphasizes a "batteries included" approach, aiming to provide a more complete and user-friendly experience by integrating features that might otherwise require external components. Backed by Snap Inc., KeyDB is actively maintained and committed to the open-source community.
Links
Source repository
Open the original repository on GitHub.
16 counted GitHub visits
Related repositories
Similar repositories that may be relevant next.

agent.cpp: Building Local LLM Agents with C++ and llama.cpp
September 3, 2026
agent.cpp provides essential building blocks for developing local AI agents using C++. It leverages llama.cpp to enable efficient execution of small language models directly on your hardware. This library offers a modular approach with features like agent loops, callbacks, tools, and grammar-constrained output, making it ideal for creating custom, privacy-focused agent solutions.

ACM-ICPC-Algorithms: Competitive Programming Algorithms
July 16, 2026
A collection of algorithms and data structures for competitive programming, organized by topic. It is useful for ICPC participants and programmers looking for reference implementations across common contest problems.

awesome-competitive-programming: Find Contest Learning Resources
July 16, 2026
A curated directory of resources for competitive programming, algorithms, and data structures. Use it to find study materials, practice platforms, contest tools, and communities in one place.

CompetitiveCode: Explore Competitive Programming Problems and Solutions
July 16, 2026
CompetitiveCode is a community collection of interesting programming challenges and documented solutions organized by source or topic. It is useful for learners practicing algorithms and contributors sharing solutions in several programming languages.