Remove LRUCache class migrating to mnemoist (#16872)

This commit is contained in:
Jacob Richman
2026-01-16 13:17:31 -08:00
committed by GitHub
parent d8d4d87e29
commit f2d3b76389
8 changed files with 13 additions and 115 deletions
+2 -2
View File
@@ -7,7 +7,7 @@
import { createHash } from 'node:crypto';
import { type Content, Type } from '@google/genai';
import { type BaseLlmClient } from '../core/baseLlmClient.js';
import { LruCache } from './LruCache.js';
import { LRUCache } from 'mnemonist';
import { promptIdContext } from './promptIdContext.js';
import { debugLogger } from './debugLogger.js';
@@ -84,7 +84,7 @@ const SearchReplaceEditSchema = {
required: ['search', 'replace', 'explanation'],
};
const editCorrectionWithInstructionCache = new LruCache<
const editCorrectionWithInstructionCache = new LRUCache<
string,
SearchReplaceEdit
>(MAX_CACHE_SIZE);