Top Description Methods
waffle.util.cache

public Interface CacheSupplier

Known Direct Implementers
waffle.util.cache.CaffeineCacheSupplier

Service interface to instantiate a new Cache.
Author
Simon Legner

Method Summary

Modifier and TypeMethod and Description
public <
the type of keys maintained by this cache
K
,
the type of mapped values
V
>
Cache<K, V>

Returns:

a new cache
newCache
(final long
timeout in seconds
timeout
)

Creates a new cache with the specified timeout

Method Detail

newCacheback to summary
public <K, V> Cache<K, V> newCache(final long timeout)

Creates a new cache with the specified timeout

Parameters
<K>
the type of keys maintained by this cache
<V>
the type of mapped values
timeout:long

timeout in seconds

Returns:Cache<K, V>

a new cache