From cc2624d08e422c36a4f93cc15d0ca0f0b7b4951a Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期一, 17 一月 2022 15:46:28 +0800 Subject: [PATCH] update 优化加载字典缓存数据 --- script/docker/redis/redis.conf | 28 +++++++++++++++++++++++++++- 1 files changed, 27 insertions(+), 1 deletions(-) diff --git a/script/docker/redis/redis.conf b/script/docker/redis/redis.conf index 213e9ba..a07c9d2 100644 --- a/script/docker/redis/redis.conf +++ b/script/docker/redis/redis.conf @@ -1,2 +1,28 @@ # redis 瀵嗙爜 -# requirepass 123456 \ No newline at end of file +# requirepass ruoyi123 + +# key 鐩戝惉鍣ㄩ厤缃� +# notify-keyspace-events Ex + +# 閰嶇疆鎸佷箙鍖栨枃浠跺瓨鍌ㄨ矾寰� +dir /redis/data +# 閰嶇疆rdb +# 15鍒嗛挓鍐呮湁鑷冲皯1涓猭ey琚洿鏀瑰垯杩涜蹇収 +save 900 1 +# 5鍒嗛挓鍐呮湁鑷冲皯10涓猭ey琚洿鏀瑰垯杩涜蹇収 +save 300 10 +# 1鍒嗛挓鍐呮湁鑷冲皯10000涓猭ey琚洿鏀瑰垯杩涜蹇収 +save 60 10000 +# 寮�鍚帇缂� +rdbcompression yes +# rdb鏂囦欢鍚� 鐢ㄩ粯璁ょ殑鍗冲彲 +dbfilename dump.rdb + +# 寮�鍚痑of +appendonly yes +# 鏂囦欢鍚� +appendfilename "appendonly.aof" +# 鎸佷箙鍖栫瓥鐣�,no:涓嶅悓姝�,everysec:姣忕涓�娆�,always:鎬绘槸鍚屾,閫熷害姣旇緝鎱� +# appendfsync always +appendfsync everysec +# appendfsync no -- Gitblit v1.9.3