Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vinikjkkj committed Dec 19, 2024
1 parent 2c96bb0 commit c25572c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/caches/ttl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit c25572c

Please sign in to comment.