From f7f8e9cc7de686fe3e8ef424f1d50fa821255449 Mon Sep 17 00:00:00 2001
From: whycxzp <perryhsu@163.com>
Date: 星期六, 23 一月 2021 17:30:48 +0800
Subject: [PATCH] update

---
 src/main/resources/config/application.yml |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/config/application.yml b/src/main/resources/config/application.yml
index 1369392..062492b 100644
--- a/src/main/resources/config/application.yml
+++ b/src/main/resources/config/application.yml
@@ -59,3 +59,38 @@
 knife:
   enable: true
 #  enable: fase
+redis:
+  #妯″紡 single/sentinel/cluster
+  model: single
+  timeout: 3000
+  global-session-timeout: 360000
+  password:
+  #杩炴帴姹犻厤缃�
+  pool:
+    size: 10
+    max-idle: 16
+    min-idle: 8
+    max-active: 8
+    max-wait: 3000
+    conn-timeout: 3000
+    so-timeout: 3000
+  #鍗曟満閰嶇疆
+  single:
+    address: redis://localhost:6379
+  #鍝ㄥ叺閰嶇疆
+  sentinel:
+    master: business-master
+    nodes: redis://localhost:6379,redis://localhost:6380
+    master-onlyWrite: true
+    fail-max: 3
+  #闆嗙兢閰嶇疆
+  cluster:
+    scan-interval: 1000
+    nodes: redis://localhost:6379
+    read-mode: SLAVE
+    retry-attempts: 3
+    failed-attempts: 3
+    slave-connection-pool-size: 64
+    master-connection-pool-size: 64
+    retry-interval: 1500
+

--
Gitblit v1.9.1