From 77bce8b1e8a4d151119505a80f68128dbce500a3 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期五, 24 九月 2021 09:59:28 +0800 Subject: [PATCH] update springboot 2.5.4 => 2.5.5 bugfix版本 update mybatis-plus 3.4.3.3 => 3.4.3.4 bugfix版本 update redisson 3.16.2 => 3.16.3 bugfix版本 --- ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java index 0019761..23a25e0 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java @@ -16,9 +16,12 @@ * spring redis 宸ュ叿绫� * * @author shenxinquan + * @see com.ruoyi.common.utils.RedisUtils + * @deprecated 3.2.0 鍒犻櫎姝ょ被 **/ @SuppressWarnings(value = {"unchecked", "rawtypes"}) @Component +@Deprecated public class RedisCache { @Autowired @@ -31,7 +34,7 @@ * @param msg 鍙戦�佹暟鎹� * @param consumer 鑷畾涔夊鐞� */ - public <T> void publish(String channelKey, T msg, Consumer consumer) { + public <T> void publish(String channelKey, T msg, Consumer<T> consumer) { RTopic topic = redissonClient.getTopic(channelKey); topic.publish(msg); consumer.accept(msg); @@ -49,7 +52,7 @@ * @param clazz 娑堟伅绫诲瀷 * @param consumer 鑷畾涔夊鐞� */ - public <T> void subscribe(String channelKey, Class<T> clazz, Consumer consumer) { + public <T> void subscribe(String channelKey, Class<T> clazz, Consumer<T> consumer) { RTopic topic = redissonClient.getTopic(channelKey); topic.addListener(clazz, (channel, msg) -> consumer.accept(msg)); } -- Gitblit v1.9.3