From c5ddf5985892f052263240a02e21215027e6ee05 Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期三, 19 一月 2022 17:40:03 +0800
Subject: [PATCH] 修改readme
---
src/main/java/com/genersoft/iot/vmp/utils/redis/RedisUtil.java | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/genersoft/iot/vmp/utils/redis/RedisUtil.java b/src/main/java/com/genersoft/iot/vmp/utils/redis/RedisUtil.java
index dd5614f..da09851 100644
--- a/src/main/java/com/genersoft/iot/vmp/utils/redis/RedisUtil.java
+++ b/src/main/java/com/genersoft/iot/vmp/utils/redis/RedisUtil.java
@@ -3,13 +3,14 @@
import java.util.*;
import java.util.concurrent.TimeUnit;
+import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.*;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;
/**
- * @Description:Redis宸ュ叿绫�
+ * @description:Redis宸ュ叿绫�
* @author: swwheihei
* @date: 2020骞�5鏈�6鏃� 涓嬪崍8:27:29
*/
@@ -729,4 +730,11 @@
return new ArrayList<>(keys);
}
+ // ============================== 娑堟伅鍙戦�佷笌璁㈤槄 ==============================
+ public void convertAndSend(String channel, JSONObject msg) {
+// redisTemplate.convertAndSend(channel, msg);
+ redisTemplate.convertAndSend(channel, msg);
+
+ }
+
}
--
Gitblit v1.8.0