mirror of
https://gitee.com/freshday/radar.git
synced 2026-03-22 12:47:16 +08:00
contains接口实现修改
This commit is contained in:
@@ -229,7 +229,6 @@ public class RedisServiceImpl implements RedisService {
|
||||
|
||||
@Override
|
||||
public boolean contains(String token) {
|
||||
String value = get(token);
|
||||
return value.equals(token);
|
||||
return jedisPool.getResource().exists(token);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,7 +127,6 @@ public class RedisTemplateServiceImpl implements RedisService {
|
||||
|
||||
@Override
|
||||
public boolean contains(String token) {
|
||||
String value = (String) get(token);
|
||||
return value.equals(token);
|
||||
return stringRedisTemplate.hasKey(token);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user