-
public final class DDCaches
-
-
Method Summary
Modifier and Type Method Description static <K, V> DDCache<K, V>newFixedSizeCache(int capacity)Creates a cache which cannot grow beyond a fixed capacity. static <K, V> DDPartialKeyCache<K, V>newFixedSizePartialKeyCache(int capacity)-
-
Method Detail
-
newFixedSizeCache
static <K, V> DDCache<K, V> newFixedSizeCache(int capacity)
Creates a cache which cannot grow beyond a fixed capacity. Useful for caching relationshipsbetween low cardinality but potentially unbounded keys with values, without risking usingunbounded space.
- Parameters:
capacity- the cache's fixed capacity
-
newFixedSizePartialKeyCache
static <K, V> DDPartialKeyCache<K, V> newFixedSizePartialKeyCache(int capacity)
-
-
-
-