Cache based on com.github.benmanes.caffeine.cache.Cache
| Access | Constructor and Description |
|---|---|
| public | CaffeineCache(final @NonNegative long
Specified timeout in seconds for cache. timeout)Instantiate new caffeine cache with timeout. |
| Modifier and Type | Method and Description |
|---|---|
| public V | |
| public void | put(K
the key key, V the value value)Implements waffle. |
| public void | remove(K
the key key)Implements waffle. |
| public int |
| cache | back to summary |
|---|---|
| private final Cache<K, V> cache The cache store. | |
| CaffeineCache | back to summary |
|---|---|
| public CaffeineCache(final @NonNegative long timeout) Instantiate new caffeine cache with timeout.
| |
| get | back to summary |
|---|---|
| public V get(K key) Implements waffle. Doc from waffle. Fetches the key from the cache
| |
| put | back to summary |
|---|---|
| public void put(K key, V value) Implements waffle. Doc from waffle. Stores a binding for the key and the value in the cache
| |
| remove | back to summary |
|---|---|
| public void remove(K key) Implements waffle. Doc from waffle. Removes the binding for the key from the cache
| |
| size | back to summary |
|---|---|
| public int size() Implements waffle. Doc from waffle. Returns the number of bindings in this cache
| |