(cache: FileStateCache)
| 131 | // Helper function to clone a FileStateCache |
| 132 | // Preserves size limit configuration from the source cache |
| 133 | export function cloneFileStateCache(cache: FileStateCache): FileStateCache { |
| 134 | const cloned = createFileStateCacheWithSizeLimit(cache.max, cache.maxSize) |
| 135 | cloned.load(cache.dump()) |
| 136 | return cloned |
| 137 | } |
| 138 | |
| 139 | // Merge two file state caches, with more recent entries (by timestamp) overriding older ones |
| 140 | export function mergeFileStateCaches( |
no test coverage detected