This commit is contained in:
2023-07-17 16:59:10 +08:00
parent 3e4449bb39
commit d33c28e1d2
2 changed files with 8 additions and 0 deletions

View File

@@ -189,13 +189,20 @@ public class SpringBootTestController {
public void testRedisSet() { public void testRedisSet() {
String redisKey = "push_station_connector"; String redisKey = "push_station_connector";
redisCache.setCacheSet(redisKey, Sets.newHashSet("1")); redisCache.setCacheSet(redisKey, Sets.newHashSet("1"));
redisCache.setCacheSet(redisKey, Sets.newHashSet("3")); redisCache.setCacheSet(redisKey, Sets.newHashSet("3"));
redisCache.setCacheSet(redisKey, Sets.newHashSet("5")); redisCache.setCacheSet(redisKey, Sets.newHashSet("5"));
redisCache.setCacheSet(redisKey, Sets.newHashSet("1")); redisCache.setCacheSet(redisKey, Sets.newHashSet("1"));
redisCache.setCacheSet(redisKey, Sets.newHashSet("1")); redisCache.setCacheSet(redisKey, Sets.newHashSet("1"));
redisCache.setCacheSet(redisKey, Sets.newHashSet("7")); redisCache.setCacheSet(redisKey, Sets.newHashSet("7"));
redisCache.setCacheSet(redisKey, Sets.newHashSet("3")); redisCache.setCacheSet(redisKey, Sets.newHashSet("3"));
Set<Object> cacheSet = redisCache.getCacheSet(redisKey); Set<Object> cacheSet = redisCache.getCacheSet(redisKey);
System.out.println(cacheSet); System.out.println(cacheSet);
} }

View File

@@ -139,6 +139,7 @@ public class JsowellTask {
/** /**
* 站点的枪口数据推送到高德 * 站点的枪口数据推送到高德
* jsowellTask.pushToAMap()
*/ */
public void pushToAMap() { public void pushToAMap() {
Set<String> stationIds = redisCache.getCacheSet(CacheConstants.PUSH_STATION_CONNECTOR); Set<String> stationIds = redisCache.getCacheSet(CacheConstants.PUSH_STATION_CONNECTOR);