mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-26 13:04:49 -07:00
Remove LRUCache class migrating to mnemoist (#16872)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user