############ SECURITY ################
requirepass "1234qwer"
##当前 redis 密码
############ LIMITS ################
# maxclients 10000
maxmemory 4gb
maxmemory-policy noeviction
############ APPEND ONLY MODE ################
appendonly yes
appendfilename "appendonly-6379.aof"
appendfsync everysec
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 80
auto-aof-rewrite-min-size 128mb
aof-load-truncated yes
############ LUA SCRIPTING ################
lua-time-limit 5000
############ REDIS CLUSTER ################
# cluster-enabled yes
# cluster-node-timeout 15000
# cluster-slave-validity-factor 10
# cluster-migration-barrier 1
# cluster-require-full-coverage yes
############ SLOW LOG ################
slowlog-log-slower-than 10000
slowlog-max-len 128
############ LATENCY MONITOR ################
latency-monitor-threshold 0
############ EVENT NOTIFICATION ################
notify-keyspace-events ""
############ ADVANCED CONFIG ################
hash-max-ziplist-entries 512
hash-max-ziplist-value 64
list-max-ziplist-entries 512