From 88ed6e25cadab7a38e59ca4c87b8de5567b158a9 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期四, 27 十月 2022 11:55:57 +0800
Subject: [PATCH] update 优化 切换 maven 仓库到 华为云
---
ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/RedissonProperties.java | 69 ++--------------------------------
1 files changed, 5 insertions(+), 64 deletions(-)
diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/RedissonProperties.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/RedissonProperties.java
index eae9e3f..b0bf285 100644
--- a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/RedissonProperties.java
+++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/RedissonProperties.java
@@ -4,11 +4,8 @@
import lombok.NoArgsConstructor;
import org.redisson.config.ReadMode;
import org.redisson.config.SubscriptionMode;
-import org.redisson.config.TransportMode;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
-
-import java.util.List;
/**
* Redisson 閰嶇疆灞炴��
@@ -21,6 +18,11 @@
public class RedissonProperties {
/**
+ * redis缂撳瓨key鍓嶇紑
+ */
+ private String keyPrefix;
+
+ /**
* 绾跨▼姹犳暟閲�,榛樿鍊� = 褰撳墠澶勭悊鏍告暟閲� * 2
*/
private int threads;
@@ -31,11 +33,6 @@
private int nettyThreads;
/**
- * 浼犺緭妯″紡
- */
- private TransportMode transportMode;
-
- /**
* 鍗曟満鏈嶅姟閰嶇疆
*/
private SingleServerConfig singleServerConfig;
@@ -44,11 +41,6 @@
* 闆嗙兢鏈嶅姟閰嶇疆
*/
private ClusterServersConfig clusterServersConfig;
-
- /**
- * 缂撳瓨缁�
- */
- private List<CacheGroup> cacheGroup;
@Data
@NoArgsConstructor
@@ -78,16 +70,6 @@
* 鍛戒护绛夊緟瓒呮椂锛屽崟浣嶏細姣
*/
private int timeout;
-
- /**
- * 濡傛灉灏濊瘯鍦ㄦ闄愬埗涔嬪唴鍙戦�佹垚鍔燂紝鍒欏紑濮嬪惎鐢� timeout 璁℃椂銆�
- */
- private int retryAttempts;
-
- /**
- * 鍛戒护閲嶈瘯鍙戦�佹椂闂撮棿闅旓紝鍗曚綅锛氭绉�
- */
- private int retryInterval;
/**
* 鍙戝竷鍜岃闃呰繛鎺ユ睜澶у皬
@@ -131,24 +113,9 @@
private int idleConnectionTimeout;
/**
- * ping瓒呮椂
- */
- private int pingConnectionInterval;
-
- /**
* 鍛戒护绛夊緟瓒呮椂锛屽崟浣嶏細姣
*/
private int timeout;
-
- /**
- * 濡傛灉灏濊瘯鍦ㄦ闄愬埗涔嬪唴鍙戦�佹垚鍔燂紝鍒欏紑濮嬪惎鐢� timeout 璁℃椂銆�
- */
- private int retryAttempts;
-
- /**
- * 鍛戒护閲嶈瘯鍙戦�佹椂闂撮棿闅旓紝鍗曚綅锛氭绉�
- */
- private int retryInterval;
/**
* 鍙戝竷鍜岃闃呰繛鎺ユ睜澶у皬
@@ -164,32 +131,6 @@
* 璁㈤槄妯″紡
*/
private SubscriptionMode subscriptionMode;
-
- }
-
- @Data
- @NoArgsConstructor
- public static class CacheGroup {
-
- /**
- * 缁刬d
- */
- private String groupId;
-
- /**
- * 缁勮繃鏈熸椂闂�
- */
- private long ttl;
-
- /**
- * 缁勬渶澶х┖闂叉椂闂�
- */
- private long maxIdleTime;
-
- /**
- * 缁勬渶澶ч暱搴�
- */
- private int maxSize;
}
--
Gitblit v1.9.3