【cache】修复缓存的一个bug

pull/3/head
fengshuonan 2020-12-26 19:05:08 +08:00
parent 478bbf6959
commit effff8c6e0
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ public abstract class AbstractMemoryCacheOperator<T> implements CacheOperatorApi
@Override
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);
}