Skip to content

Commit

Permalink
dev: redis allkeys-lru
Browse files Browse the repository at this point in the history
  • Loading branch information
ElysaSrc authored and flomonster committed Jul 9, 2024
1 parent 928461d commit c390cb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ services:
ports: ["6379:6379"]
volumes:
- "redis_data:/data"
command: "valkey-server --save 30 1 --loglevel warning"
- "./docker/valkey.conf:/etc/valkey.conf"
command: "valkey-server /etc/valkey.conf --save 30 1 --loglevel warning"
healthcheck:
test: ["CMD", "valkey-cli", "ping"]
start_period: 4s
Expand Down
2 changes: 2 additions & 0 deletions docker/valkey.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
maxmemory-policy allkeys-lru
maxmemory 1gb

0 comments on commit c390cb4

Please sign in to comment.