From 89c1e4f91de2a527ec825c76b0de5dd2fd42cc59 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期六, 13 八月 2022 11:30:33 +0800 Subject: [PATCH] update 重写 spring-cache 实现 更人性化的操作 支持注解指定ttl等一些参数 --- ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/RedissonProperties.java | 37 ++----------------------------------- 1 files changed, 2 insertions(+), 35 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 eab746c..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 @@ -7,8 +7,6 @@ import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; -import java.util.List; - /** * Redisson 閰嶇疆灞炴�� * @@ -18,12 +16,12 @@ @Component @ConfigurationProperties(prefix = "redisson") public class RedissonProperties { - + /** * redis缂撳瓨key鍓嶇紑 */ private String keyPrefix; - + /** * 绾跨▼姹犳暟閲�,榛樿鍊� = 褰撳墠澶勭悊鏍告暟閲� * 2 */ @@ -43,11 +41,6 @@ * 闆嗙兢鏈嶅姟閰嶇疆 */ private ClusterServersConfig clusterServersConfig; - - /** - * 缂撳瓨缁� - */ - private List<CacheGroup> cacheGroup; @Data @NoArgsConstructor @@ -138,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