public class MinimalRebuildCacheManager extends Object
Changes are immediately performed in memory and are asynchronously persisted to disk in original request order.
Constructor and Description |
---|
MinimalRebuildCacheManager(TreeLogger logger,
File baseCacheDir,
Map<String,String> options) |
Modifier and Type | Method and Description |
---|---|
void |
deleteCaches()
Synchronously delete all in memory caches managed here and all on disk in the managed folder.
|
MinimalRebuildCache |
getCache(String moduleName,
PropertyCombinations.PermutationDescription permutationDescription)
Synchronously return the MinimalRebuildCache specific to the given module and binding
properties.
|
void |
putCache(String moduleName,
PropertyCombinations.PermutationDescription permutationDescription,
MinimalRebuildCache knownGoodMinimalRebuildCache)
Stores a MinimalRebuildCache specific to the given module and binding properties.
|
public MinimalRebuildCacheManager(TreeLogger logger, File baseCacheDir, Map<String,String> options)
public void deleteCaches()
public MinimalRebuildCache getCache(String moduleName, PropertyCombinations.PermutationDescription permutationDescription)
If no cache is found in memory then it will be synchronously loaded from disk.
If it is still not found a new empty cache will be returned.
public void putCache(String moduleName, PropertyCombinations.PermutationDescription permutationDescription, MinimalRebuildCache knownGoodMinimalRebuildCache)
A copy of the cache will be lazily persisted to disk as well.
Copyright © 2018. All rights reserved.