Damp

Valkey Cache

Redis-compatible cache server

Open-source Redis-compatible key-value store using Valkey latest version.

Docker Configuration

Image: valkey/valkey:latest
Ports: 6379:6379
Volume: damp-valkey:/data

DAMP identifies the service using Docker labels. Container name is auto-generated by Docker.

Port Configuration

Default ports: 6379 (host) → 6379 (container)

If port 6379 is occupied on the host machine, DAMP automatically uses the next available port. Check the DAMP interface to see the actual port assigned.

Valkey uses the same protocol as Redis - existing Redis clients work without modification.

Authentication

No authentication is configured for development environments.

Connection Information

From Host Machine (Windows)

Connect from your Windows host to the Valkey service.

# Use redis-cli (fully compatible)
redis-cli -h localhost -p 6379

# Test connection
redis-cli -h localhost -p 6379 ping
# Returns: PONG

Connection Details:

  • Host: localhost
  • Port: 6379 (or actual port shown in DAMP)
  • Password: None

Connection String:

redis://localhost:6379

From Project Containers

Connect from your DevContainers or other Docker containers to the Valkey service.

Use the container name or ID shown in the DAMP interface.

# Using container name from DAMP (use redis-cli)
redis-cli -h [container-name]

# Test connection
redis-cli -h [container-name] ping
# Returns: PONG

Laravel .env Configuration:

REDIS_HOST=[container-name]
REDIS_PORT=6379
REDIS_PASSWORD=null

Replace [container-name] with the actual container name displayed in DAMP.

Usage Examples

# Same commands as Redis
SET key value
GET key
EXPIRE key 3600
// Laravel - works identically to Redis
Cache::put('data', $value, 3600);
$value = Cache::get('data');

Data Persistence

Data is periodically saved to the damp-valkey volume for durability.

On this page