Package waffle.util.cache
Interface CacheSupplier
-
- All Known Implementing Classes:
CaffeineCacheSupplier
public interface CacheSupplierService interface to instantiate a newCache.- Author:
- Simon Legner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <K,V>
Cache<K,V>newCache(long timeout)Creates a new cache with the specified timeout
-
-
-
Method Detail
-
newCache
<K,V> Cache<K,V> newCache(long timeout)
Creates a new cache with the specified timeout- Type Parameters:
K- the type of keys maintained by this cacheV- the type of mapped values- Parameters:
timeout- timeout in seconds- Returns:
- a new cache
-
-