jianjianxu
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/utils/cache/memory.ts
|
|
|
@ -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); |
|
|
|
|