mirror of https://gitee.com/stylefeng/roses
【cache】修复缓存一个bug
parent
a646cb67ce
commit
3f634f8eef
|
@ -29,8 +29,8 @@ public class LoginRequest extends BaseRequest {
|
|||
private String password;
|
||||
|
||||
/**
|
||||
* 记住我
|
||||
* 记住我,不传就是false
|
||||
*/
|
||||
private Boolean rememberMe;
|
||||
private Boolean rememberMe = false;
|
||||
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ public abstract class AbstractMemoryCacheOperator<T> implements CacheOperatorApi
|
|||
|
||||
@Override
|
||||
public boolean contains(String key) {
|
||||
return timedCache.containsKey(key);
|
||||
return timedCache.containsKey(getCommonKeyPrefix() + key);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue