K
- the key typeV
- the value typepublic class TrellisCache<K,V> extends Object implements CacheService<K,V>
CacheService.TrellisProfileCache
Constructor and Description |
---|
TrellisCache(com.google.common.cache.Cache<K,V> cache)
Create a Trellis cache.
|
public V get(K key, Function<K,V> mapper)
CacheService
get
in interface CacheService<K,V>
key
- the keymapper
- attempts to compute a mapping for the specified keynull