mirror of https://gitee.com/stylefeng/roses
【cache】修复缓存的一个bug
parent
478bbf6959
commit
effff8c6e0
|
@ -49,7 +49,7 @@ public abstract class AbstractMemoryCacheOperator<T> implements CacheOperatorApi
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void expire(String key, Long expiredSeconds) {
|
public void expire(String key, Long expiredSeconds) {
|
||||||
T value = this.get(getCommonKeyPrefix() + key);
|
T value = timedCache.get(getCommonKeyPrefix() + key, true);
|
||||||
timedCache.put(getCommonKeyPrefix() + key, value, expiredSeconds * 1000);
|
timedCache.put(getCommonKeyPrefix() + key, value, expiredSeconds * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue