Unverified 提交 a542317d 作者: jianjianxu 提交者: GitHub

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

上级 e4305daf
...@@ -58,7 +58,7 @@ export class Memory<T = any, V = any> { ...@@ -58,7 +58,7 @@ export class Memory<T = any, V = any> {
return value; return value;
} }
const now = new Date().getTime(); const now = new Date().getTime();
item.time = now + this.alive; item.time = now + expires;
item.timeoutId = setTimeout( item.timeoutId = setTimeout(
() => { () => {
this.remove(key); this.remove(key);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论