( maxEntries: number, maxSizeBytes: number = DEFAULT_MAX_CACHE_SIZE_BYTES, )
| 99 | * for large text files, notebooks, and other editable content. |
| 100 | */ |
| 101 | export function createFileStateCacheWithSizeLimit( |
| 102 | maxEntries: number, |
| 103 | maxSizeBytes: number = DEFAULT_MAX_CACHE_SIZE_BYTES, |
| 104 | ): FileStateCache { |
| 105 | return new FileStateCache(maxEntries, maxSizeBytes) |
| 106 | } |
| 107 | |
| 108 | // Helper function to convert cache to object (used by compact.ts) |
| 109 | export function cacheToObject( |
no outgoing calls
no test coverage detected