diff --git a/src/utils/redis.ts b/src/utils/redis.ts index e3d714c..a89ec0a 100644 --- a/src/utils/redis.ts +++ b/src/utils/redis.ts @@ -67,7 +67,9 @@ const maxStoredTimes = 200; const cache = config.redis.clientCacheSize ? new LRUCache({ maxSize: config.redis.clientCacheSize, - sizeCalculation: (value) => value.length + sizeCalculation: (value) => value.length, + ttl: 1000 * 60 * 30, + ttlResolution: 1000 * 60 * 15 }) : null; // For redis