From a542317dc3a6b9124292a32db5e5ad8b2f7d5cff Mon Sep 17 00:00:00 2001 From: jianjianxu Date: Wed, 23 Mar 2022 22:31:50 +0800 Subject: [PATCH] fix: wrong item.time without the "expires" (#1740) --- src/utils/cache/memory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/cache/memory.ts b/src/utils/cache/memory.ts index 76e30a92..2188ed01 100644 --- a/src/utils/cache/memory.ts +++ b/src/utils/cache/memory.ts @@ -58,7 +58,7 @@ export class Memory { return value; } const now = new Date().getTime(); - item.time = now + this.alive; + item.time = now + expires; item.timeoutId = setTimeout( () => { this.remove(key); -- GitLab