fix: wrong item.time without the "expires" (#1740)
This commit is contained in:
parent
e4305daf98
commit
a542317dc3
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue