From e58d6c9f2523806a865855157ca49219dc8dd9a1 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Tue, 28 Feb 2023 11:23:17 +0530 Subject: [PATCH] chore: default delete keys on expire --- src/Utils/auth-utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Utils/auth-utils.ts b/src/Utils/auth-utils.ts index 0b29d82..006eb8d 100644 --- a/src/Utils/auth-utils.ts +++ b/src/Utils/auth-utils.ts @@ -20,6 +20,7 @@ export function makeCacheableSignalKeyStore( const cache = _cache || new NodeCache({ stdTTL: DEFAULT_CACHE_TTLS.SIGNAL_STORE, // 5 minutes useClones: false, + deleteOnExpire: true, }) function getUniqueId(type: string, id: string) {