S
Supanote
Sign in Sign up

Redis In-Memory Production Cache & Eviction Config

plain (conf) 1 day ago · 30 lines · 10 views
1# Redis In-Memory Production Cache Tier
2# Optimized for zero disk bottleneck and LRU eviction
3
4port 6379
5bind 127.0.0.1 ::1
6protected-mode yes
7timeout 300
8tcp-keepalive 60
9
10# Max Memory Limit & Eviction Policy
11maxmemory 2gb
12maxmemory-policy volatile-lru
13maxmemory-samples 7
15# Disable Disk Persistence for Pure Cache Tier
16save ""
17appendonly no
19# Concurrency & Performance
20io-threads 4
21io-threads-do-reads yes
22lazyfree-lazy-eviction yes
23lazyfree-lazy-expire yes
24lazyfree-lazy-server-del yes
26# Security
27rename-command FLUSHALL ""
28rename-command FLUSHDB ""
29rename-command DEBUG ""

No replies yet

Every reply is a note. Start a discussion, ask a question, or attach a code snippet.

Share Note

Download SVG
Social Card Preview
Open on mobile
Point your phone camera to open this note directly

Report this note

Notification