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.
Agent 可直接安装
这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。
npx -y tokrepo@latest install 290afcad-3641-11f1-9bc6-00163e2b0d79 --target codex先 dry-run 确认安装计划,再运行此命令。
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.
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.
How to use
- 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
- Connect with standard Redis tools:
redis-cli -h 127.0.0.1 -p 6379
> PING
PONG
> SET mykey myvalue
OK
> GET mykey
"myvalue"
- Point your application's Redis connection string to the Valkey instance. No client library changes needed.
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)
Related on TokRepo
- Database tools -- Explore database solutions for AI workflows
- Self-hosted tools -- Run your own infrastructure
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.
常见问题
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.
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.
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.
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.
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.
引用来源 (3)
- Valkey GitHub— Valkey is a Linux Foundation fork of Redis
- Valkey Official Site— Community-driven with contributions from AWS, Google, Oracle
- Valkey License— BSD 3-clause license
讨论
相关资产
NocoDB — Open Source No-Code Database Platform
NocoDB turns any SQL database into a smart spreadsheet with REST APIs. Open-source Airtable alternative with views, automations, and team collaboration.
DiceDB — Reactive Key-Value Store with Query Subscriptions
DiceDB is an open-source in-memory key-value database built on Valkey that adds real-time query subscriptions, letting clients watch query results and receive push notifications when data changes.
Kepler.gl — Open Source Geospatial Data Visualization
A powerful open-source tool for large-scale geospatial data visualization built on deck.gl and Mapbox GL.
Reactive Resume — AI-Powered Open-Source Resume Builder
Free open-source resume builder with AI integration. Supports Claude, GPT, Gemini for content generation. Drag-and-drop, PDF export, self-hostable, privacy-first. MIT, 36,000+ stars.