(cache: FileStateCache)
| 120 | // Helper function to clone a FileStateCache |
| 121 | // Preserves size limit configuration from the source cache |
| 122 | export function cloneFileStateCache(cache: FileStateCache): FileStateCache { |
| 123 | const cloned = createFileStateCacheWithSizeLimit(cache.max, cache.maxSize) |
| 124 | cloned.load(cache.dump()) |
| 125 | return cloned |
| 126 | } |
| 127 | |
| 128 | // Merge two file state caches, with more recent entries (by timestamp) overriding older ones |
| 129 | export function mergeFileStateCaches( |
no test coverage detected