chore: default delete keys on expire

This commit is contained in:
Adhiraj Singh
2023-02-28 11:23:17 +05:30
parent 79aa2e5176
commit e58d6c9f25

View File

@@ -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) {