Package waffle.util.cache
Class CaffeineCacheSupplier
java.lang.Object
waffle.util.cache.CaffeineCacheSupplier
- All Implemented Interfaces:
CacheSupplier
A
CacheSupplier
supplying CaffeineCache
.- Author:
- Simon Legner
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CaffeineCacheSupplier
public CaffeineCacheSupplier()
-
-
Method Details
-
newCache
Description copied from interface:CacheSupplier
Creates a new cache with the specified timeout- Specified by:
newCache
in interfaceCacheSupplier
- 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
-