createGitCacheManager()
createGitCacheManager(
options?):GitCacheManager
Defined in: resolver/src/git-cache-manager.ts:381
Create a new GitCacheManager instance.
Parameters
options?
Cache manager options
Returns
GitCacheManager instance
Example
const cache = createGitCacheManager({ cacheDir: '/custom/cache/path', ttl: 1800000, // 30 minutes});
// Check if cache is validconst isValid = await cache.isValid('https://github.com/org/repo.git', 'main');
// Get or create cacheconst entry = await cache.get('https://github.com/org/repo.git', 'main');