Class CloneBackedCache<K,V extends GolangCloneable>
- java.lang.Object
-
- com.github.blindpirate.gogradle.core.cache.CloneBackedCache<K,V>
-
- All Implemented Interfaces:
Cache<K,V>
- Direct Known Subclasses:
PersistenceCache
public class CloneBackedCache<K,V extends GolangCloneable> extends java.lang.Object implements Cache<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<K,V>container-
Fields inherited from interface com.github.blindpirate.gogradle.core.cache.Cache
DEFAULT_LRU_CAPACITY
-
-
Constructor Summary
Constructors Constructor Description CloneBackedCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vget(K key, java.util.function.Function<K,V> constructor)
-
-
-
Field Detail
-
container
protected java.util.Map<K,V extends GolangCloneable> container
-
-