未验证 提交 a542317d 编写于 作者: J jianjianxu 提交者: GitHub

fix: wrong item.time without the "expires" (#1740)

上级 e4305daf
......@@ -58,7 +58,7 @@ export class Memory<T = any, V = any> {
return value;
}
const now = new Date().getTime();
item.time = now + this.alive;
item.time = now + expires;
item.timeoutId = setTimeout(
() => {
this.remove(key);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册