From c25572cf589bdb7350a201e9882e0d88504ff83d Mon Sep 17 00:00:00 2001 From: vinikjkkj Date: Wed, 18 Dec 2024 23:04:00 -0300 Subject: [PATCH] update --- src/caches/ttl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/caches/ttl.ts b/src/caches/ttl.ts index 39aa95a..7c34942 100644 --- a/src/caches/ttl.ts +++ b/src/caches/ttl.ts @@ -49,7 +49,7 @@ export class TTLCache extends Cache { this._defaultTTL = params.ttl } - setInterval(() => this._checkExpired(), this._checkInterval) + this._intervalId = setInterval(() => this._checkExpired(), this._checkInterval) } set(key: Keyable, value: unknown, ttl = 0){