public <K, T> Cache<K, T> newCache(Class<K> keyClass, Class<T> valueClass) { Cache<K, T> cache = new CacheImpl<K, T>(); return cache .setRefreshingStrategy(newRefreshingStrategyForVolatileProvider(cache)); }
public <I, K extends IndexedCacheKey<I>, T> IndexedCache<I, K, T> newIndexedCache( Class<I> indexClass, Class<K> keyClass, Class<T> valueClass) { IndexedCache<I, K, T> cache = new IndexedCacheImpl<I, K, T>(); cache .setRefreshingStrategy(newRefreshingStrategyForVolatileProvider(cache)); return cache; }