Valkey Cache
Redis-compatible cache server
Open-source Redis-compatible key-value store. Drop-in replacement for Redis with the same commands and protocols.
Default Configuration
Image: valkey/valkey:alpine
Container: damp-valkey
Port: 6379:6379
Network: devnet
Volume: damp-valkey:/dataRedis Compatible
Valkey uses the same protocol as Redis - existing Redis clients work without modification!
Connection Information
From Docker Containers
# Use redis-cli (fully compatible)
redis-cli -h damp-valkey
# Test connection
redis-cli -h damp-valkey pingLaravel .env:
REDIS_HOST=damp-valkey
REDIS_PORT=6379
REDIS_PASSWORD=nullFrom Host Machine
redis-cli -h localhost -p 6379Connection String:
redis://localhost:6379Why Valkey?
- ✅ Fully Open Source - Linux Foundation project
- ✅ Redis Compatible - Same commands, same clients
- ✅ Active Development - Modern features and improvements
- ✅ Performance - Optimized for speed
Usage Examples
# Same as Redis!
SET key value
GET key
EXPIRE key 3600// Laravel - works identically
Cache::put('data', $value, 3600);
$value = Cache::get('data');Migration Tip
Switching from Redis? Just change the host to damp-valkey - everything else stays the same!