Self-host Redis
8.10.3In-memory data structure server and cache
- Stars
- 77 319
- Port
- 6379 (Redis protocol (TCP))
redisWhat is Redis?
Redis is an in-memory data structure server that functions as a database, cache, message broker, and vector query engine. It supports strings, hashes, lists, sets, sorted sets, JSON, and vectors. Key capabilities include caching with multiple eviction policies, session management, pub/sub messaging, streams for event processing, full-text and vector search via Redis Search, and Lua scripting for server-side programmability. Redis can be self-hosted via official Docker images, binary packages (Snap, Homebrew, RPM, Debian), or built from source on Linux, macOS, and BSD systems. The project uses a tri-license model (RSALv2/SSPLv1/AGPLv3) for version 8.0 and later, while versions 7.2 and earlier remain under BSD-3-Clause. Redis has no minimum hardware requirements documented but runs entirely in memory so RAM must accommodate the dataset.
Redis alternatives
KeyDBA Multithreaded Fork of RedisCompareKeyDB with Redis
RedictRedict is a distributed key/value store, an independent fork of Redis OSS 7.2.4 licensed under LGPL-3.0-only.CompareRedict with Redis
ValkeySelf-hosted, open-source Valkey is an in-memory key-value database for caching, queues and primary data, with replication, Sentinel failover and cluster sharding.CompareValkey with Redis
Redis CommanderSelf-hosted, open-source web app to view, edit and manage Redis databases across standalone, Sentinel and Cluster setups, with a browser Redis CLI and tree key view.CompareRedis Commander with Redis
MemcachedSelf-hosted, open-source in-memory object cache that fronts databases and APIs; a single multithreaded daemon pooling RAM across your own servers.CompareMemcached with Redis
memgraphSelf-hosted, open-source in-memory graph database with Cypher, vector indexes and the MAGE algorithm library for GraphRAG and real-time graph analytics.Comparememgraph with Redis
rushdbRushDB is a self-hosted graph+vector DB for AI agents unifying relationships, semantic search, and live schema in one API, replacing Redis+Pinecone+Neo4j.Comparerushdb with Redis
Apache CouchDBSelf-hosted, open-source Apache CouchDB is a document database with an HTTP/JSON API, bi-directional replication for offline-first sync, and multi-server clustering.CompareApache CouchDB with Redis
Should you self-host Redis?
Redis scores 85/100 on selfhost.directory (how scoring works) and ranks #1 of 38 in Databases. It has 77 319 GitHub stars, +712 in the last 30 days.
It shipped 36 stable releases in the past year. The latest, 8.10.3, came out on 26 October 2026.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is SSPL-1.0-licensed and written mostly in C.
Its closest alternative on selfhost.directory is etcd (85/100, 52 679 stars). Redis scores higher overall. See Redis vs etcd side by side.
Features
- ACL authentication
- Cluster mode
- In-memory data store
- Multiple data structures
- Persistence (RDB/AOF)
- Replication
Redis README
This document serves as both a quick start guide to Redis and a detailed resource for building it from source.
- New to Redis? Start with What is Redis and Getting Started
- Ready to build from source? Jump to Build Redis from Source
- Want to contribute? See the Code contributions section and CONTRIBUTING.md
- Looking for detailed documentation? Navigate to redis.io/docs
More in Databases
ScyllaDBSelf-hosted ScyllaDB is a distributed NoSQL database compatible with Apache Cassandra's CQL and the Amazon DynamoDB API, built on a shared-nothing, shard-per-core design.
SpacetimeDBSpacetimeDB is a source-available relational database that is also the server: your Rust or TypeScript module runs inside it. Self-hosted via Docker.
storStor is a self-hosted, open-source JSON database that exposes a REST-like HTTP API for CRUD operations, using MongoDB as its storage backend and Node.js for the server.
SurrealDBSelf-hosted, source-available Rust database unifying documents, graphs, vectors and time-series, with live queries and row-level permissions in SurrealQL.
tidbSelf-hosted, open-source distributed SQL database with MySQL compatibility, ACID transactions, HTAP analytics and vector search in one engine.
Tile38Self-hosted, open-source in-memory geolocation store and spatial index with real-time geofencing, webhook alerts and a Redis-compatible API.
timeplusSelf-hosted, open-source streaming SQL engine for real-time analytics and AI — a lightweight alternative to ksqlDB and Flink powered by ClickHouse.
timescaleTimescaleDB is an open-source, self-hosted PostgreSQL extension for time-series and event data, with hypertables, columnar compression, and continuous aggregates.
ValkeySelf-hosted, open-source Valkey is an in-memory key-value database for caching, queues and primary data, with replication, Sentinel failover and cluster sharding.
VectorChordSelf-hosted PostgreSQL extension for scalable vector search using RaBitQ quantization, compatible with pgvector syntax, enabling 100M+ vectors on modest hardware.
victoriametricsOpen-source, self-hosted time series database and monitoring backend that replaces Prometheus or Graphite as Grafana's metrics store, with PromQL and MetricsQL querying.
yantrikdb-serverSelf-hosted memory DB for AI agents with recall, graph, contradiction detection, decay. Embedded lib, MCP server, or replicated cluster.
0 comments