/** * Creates a concurrency-safe Level 1 cache that may be used in isolation or as * the root cache in a multi-level cache design. * * @param <K> * The type of keys used to identify values in the cache. * @param <V> * The type of values stored in the cache. * * @return The newly created cache. */ public static <K, V> Cache<K, V> createTopLevelCache() { return new TopLevelCache<>(); }
@Override public Cache<K, V> getSatelliteCache() { return createSatelliteCache(this); }
@Override public Cache<K, V> getSatelliteCache() { return createSatelliteCache(this); }
/** * Creates a concurrency-safe Level 1 cache that may be used in isolation or as * the root cache in a multi-level cache design. * * @param <K> * The type of keys used to identify values in the cache. * @param <V> * The type of values stored in the cache. * * @return The newly created cache. */ public static <K, V> Cache<K, V> createTopLevelCache() { return new TopLevelCache<>(); }
@Override public Cache<K, V> getSatelliteCache() { return createSatelliteCache(this); }
/** * Creates a concurrency-safe Level 1 cache that may be used in isolation or as * the root cache in a multi-level cache design. * * @param <K> * The type of keys used to identify values in the cache. * @param <V> * The type of values stored in the cache. * * @return The newly created cache. */ public static <K, V> Cache<K, V> createTopLevelCache() { return new TopLevelCache<>(); }