Class PersistenceCache<K extends GolangCloneable,V extends GolangCloneable>
- java.lang.Object
-
- com.github.blindpirate.gogradle.core.cache.CloneBackedCache<K,V>
-
- com.github.blindpirate.gogradle.core.cache.PersistenceCache<K,V>
-
- Type Parameters:
K- key typeV- value type
- All Implemented Interfaces:
Cache<K,V>
- Direct Known Subclasses:
PersistenceNotationToResolvedCache,PersistenceResolvedToDependenciesCache
public class PersistenceCache<K extends GolangCloneable,V extends GolangCloneable> extends CloneBackedCache<K,V>
A cache which persists all data in file system.
-
-
Field Summary
-
Fields inherited from class com.github.blindpirate.gogradle.core.cache.CloneBackedCache
container
-
Fields inherited from interface com.github.blindpirate.gogradle.core.cache.Cache
DEFAULT_LRU_CAPACITY
-
-
Constructor Summary
Constructors Constructor Description PersistenceCache(org.gradle.api.Project project, java.lang.String persistenceFileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidload()voidsave()-
Methods inherited from class com.github.blindpirate.gogradle.core.cache.CloneBackedCache
get
-
-