public class CacheUtilities extends Object
| Constructor and Description |
|---|
CacheUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> WeakCARCache<K,V> |
createWeakCARCache(Computable<K,V> computable,
int maxSize,
boolean isWeak)
Returns a WEAKCarCache with the given computable and the given maximum value size of the cache.
|
public static <K,V> WeakCARCache<K,V> createWeakCARCache(Computable<K,V> computable, int maxSize, boolean isWeak)
WeakCARCache.clearStaleReferences() is calledcomputable - The computable that is used to get the V from the given KmaxSize - The maximumSize of the cacheisWeak - if true this will keep weak keyes, if false the keys will
be hard and will not go away even if they do not exist anywhere else
but this cacheCopyright © 2009-2017 Oracle Corporation. All Rights Reserved.