Files
shop-platform/docker/redis/redis.conf
2025-10-28 18:23:50 +08:00

48 lines
698 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Redis 配置文件
# 绑定地址(允许所有连接)
bind 0.0.0.0
# 端口
port 6379
# 密码认证
requirepass luckyshop123!@#
# 持久化设置
save 900 1
save 300 10
save 60 10000
# 数据存储目录
dir /data
# 日志级别
loglevel notice
# 日志文件
logfile ""
# 数据库数量
databases 16
# 最大内存限制
maxmemory 256mb
maxmemory-policy allkeys-lru
# 连接超时
timeout 0
# TCP keepalive
tcp-keepalive 300
# 保护模式Docker 中关闭)
protected-mode no
# 后台运行
daemonize no
# 客户端输出缓冲区限制
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit replica 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60