Commit a542317dc3a6b9124292a32db5e5ad8b2f7d5cff

Authored by jianjianxu
Committed by GitHub
1 parent e4305daf

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

Showing 1 changed file with 1 additions and 1 deletions
src/utils/cache/memory.ts
... ... @@ -58,7 +58,7 @@ export class Memory<T = any, V = any> {
58 58 return value;
59 59 }
60 60 const now = new Date().getTime();
61   - item.time = now + this.alive;
  61 + item.time = now + expires;
62 62 item.timeoutId = setTimeout(
63 63 () => {
64 64 this.remove(key);
... ...