CacheManager constructor
CacheManager({
- String? cacheDir,
Creates a new cache manager.
The cache directory is resolved in order of precedence:
- Explicit
cacheDirparameter. CACHE_DIRenvironment variable.$HOME/.augur/cache.
Implementation
CacheManager({String? cacheDir})
: _cacheDir = cacheDir ??
Platform.environment['CACHE_DIR'] ??
p.join(
Platform.environment['HOME'] ?? '.',
'.augur',
'cache',
);