ConfigsApr 12, 2026·3 min read

Valkey — Open Source Distributed Key-Value Database

Valkey is a community-driven fork of Redis (post-license change) maintained by the Linux Foundation. Fully compatible with Redis APIs and data formats. The open-source successor for Redis workloads including caching, sessions, queues, and pub/sub.

TL;DR
Valkey is a Linux Foundation fork of Redis, fully API-compatible and community-driven for caching and data store workloads.
§01

What it is

Valkey is a community-driven fork of Redis created after Redis changed its license. Maintained by the Linux Foundation, Valkey is fully compatible with Redis APIs, commands, and data formats. It serves as the open-source successor for Redis workloads including caching, session storage, message queues, and pub/sub.

Valkey targets teams that relied on Redis under its original open-source license and want to continue with a permissively licensed alternative. Existing Redis applications connect to Valkey without code changes.

§02

How it saves time or tokens

This workflow provides installation commands for macOS, Linux, and Docker. Instead of evaluating Redis alternatives and testing compatibility, you get a drop-in replacement that uses the same protocol. Your existing redis-cli, client libraries, and configuration files work as-is.

§03

How to use

  1. Install Valkey:
# macOS
brew install valkey

# Debian/Ubuntu
sudo apt install valkey-server

# Docker
docker run -d --name valkey -p 6379:6379 valkey/valkey:8
  1. Connect with standard Redis tools:
redis-cli -h 127.0.0.1 -p 6379
> PING
PONG
> SET mykey myvalue
OK
> GET mykey
"myvalue"
  1. Point your application's Redis connection string to the Valkey instance. No client library changes needed.
§04

Example

# Python - standard redis-py works with Valkey
import redis

r = redis.Redis(host='localhost', port=6379, decode_responses=True)

# Caching
r.setex('cache:user:42', 3600, '{"name": "Alice"}')

# Pub/Sub
pubsub = r.pubsub()
pubsub.subscribe('notifications')
r.publish('notifications', 'New deployment completed')

# Sorted sets for leaderboard
r.zadd('leaderboard', {'player_a': 100, 'player_b': 85})
top = r.zrevrange('leaderboard', 0, 9, withscores=True)
print(top)
§05

Related on TokRepo

§06

Common pitfalls

  • Valkey 8 diverges from Redis in some cluster management commands. Review the Valkey release notes before upgrading a Redis cluster in place.
  • Persistence configuration (RDB snapshots, AOF) uses the same format as Redis. Existing RDB files can be loaded directly by Valkey.
  • Some Redis-specific cloud integrations (AWS ElastiCache Redis mode) may not support Valkey directly. Check your cloud provider's compatibility.

Frequently Asked Questions

Is Valkey fully compatible with Redis?+

Yes. Valkey implements the Redis protocol and supports the same commands, data structures, and persistence formats. Client libraries like redis-py, Jedis, and ioredis connect without changes. Some newer Redis features may diverge over time as projects evolve independently.

Why was Valkey created?+

Valkey was created after Redis Labs changed Redis from a BSD license to a dual-license model (RSALv2/SSPLv1) in 2024. The Linux Foundation forked the last open-source version to maintain a permissively licensed alternative.

Who maintains Valkey?+

Valkey is maintained under the Linux Foundation with contributions from companies including AWS, Google, Oracle, Ericsson, and Snap. The governance is community-driven with an open contribution process.

Can I migrate from Redis to Valkey?+

Yes. Copy your Redis RDB or AOF persistence files to the Valkey data directory. Start Valkey and it loads them natively. For live migration, configure Valkey as a replica of Redis, sync, then promote.

What license does Valkey use?+

Valkey uses the BSD 3-clause license, the same permissive license Redis used before its license change. You can use Valkey in commercial applications without licensing restrictions.

Citations (3)

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets