Class CaffeineCache<K,V>
java.lang.Object
waffle.util.cache.CaffeineCache<K,V>
- Type Parameters:
K- the type of keys maintained by this cacheV- the type of mapped values
- All Implemented Interfaces:
Cache<K,V>
-
Constructor Summary
ConstructorsConstructorDescriptionCaffeineCache(@NonNegative long timeout) Instantiate new caffeine cache with timeout. -
Method Summary
-
Constructor Details
-
CaffeineCache
public CaffeineCache(@NonNegative long timeout) Instantiate new caffeine cache with timeout.- Parameters:
timeout- Specified timeout in seconds for cache.
-
-
Method Details
-
get
-
put
-
remove
-
size
-