Skip to content

Commit f3ed239

Browse files
committed
Change cache limit to element count instead of max size
1 parent a88cced commit f3ed239

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/utils/redis.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ const activeRequestPromises: Record<string, Promise<string>> = {};
7878
// Used to handle race conditions
7979
const resetKeys: Set<RedisCommandArgument> = new Set();
8080
const cache = config.redis.clientCacheSize ? new LRUCache<RedisCommandArgument, string>({
81-
maxSize: config.redis.clientCacheSize,
81+
// maxSize: config.redis.clientCacheSize,
82+
maxElements: 80000,
8283
ttl: 1000 * 60 * 30
8384
}) : null;
8485
// Used to cache ttl data

0 commit comments

Comments
 (0)