Commit ceea5097 by Future

排查问题需要: 下线暂不清redis

parent 1b7c58ad
......@@ -41,7 +41,7 @@ public class UserStateCacheManager extends UserStateListener {
String[] split = platformAndIp.split(RedisUtils.SPLIT);
String innerPlatform = split[0];
if(innerPlatform.equals(String.valueOf(platform))) {
redisUtils.removeForSet(getUserStateCacheKey(clientId), platformAndIp);
// redisUtils.removeForSet(getUserStateCacheKey(clientId), platformAndIp);
}
}
......@@ -53,7 +53,7 @@ public class UserStateCacheManager extends UserStateListener {
String key = getUserStateCacheKey(clientId);
String value = platform + RedisUtils.SPLIT + GetIpUtils.getlanIp();
log.info("ws用户离线删除redis key: {}, value: {}, uid: {}, clientId: {}", key, value, longChannelId, clientId);
redisUtils.removeForSet(key, value);
// redisUtils.removeForSet(key, value);
}
/**
......
......@@ -205,7 +205,7 @@ public class RedisUtils {
* @param key
*/
public void removeForSet(String key, String value) {
// redisTemplate.opsForSet().remove(key, value);
redisTemplate.opsForSet().remove(key, value);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment