From 5e138b4a8da9ba1f9af8129bb4d144782465a4d2 Mon Sep 17 00:00:00 2001 From: Raod <1130305001@qq.com> Date: Tue, 14 Mar 2023 19:33:49 +0800 Subject: [PATCH] =?UTF-8?q?redis=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=8F=82=E8=80=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- report-core/README.md | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/report-core/README.md b/report-core/README.md index 84109184..f852f475 100644 --- a/report-core/README.md +++ b/report-core/README.md @@ -75,11 +75,29 @@ public class GaeaAutoConfiguration { #### 3.bootstrap.yml加上对应的redis配置 注意yml格式 -``` -# redis: -# host: 127.0.0.1 -# port: 6379 -# password: root -# database: 1 +```yaml +spring: + redis: + host: 10.108.x.x + port: 6379 + password: **** + database: 1 + timeout: 10000 + pool: + max-active: 8 + max-idle: 8 + max-wait: -1 + min-idle: 0 ``` +哨兵模式 +```yaml +spring: + redis: + sentinel: + master: master01 + nodes: 10.108.xx.xx:26379,10.108.xx.xx:26379,10.108.xx.xx:26379 + database: 1 + password: ******* + timeout: 10000 +```