Package org.trellisldp.api
Class NoopCacheService<K,V>
- java.lang.Object
-
- org.trellisldp.api.NoopCacheService<K,V>
-
- Type Parameters:
K
- the type of key to useV
- the type of value to cache
- All Implemented Interfaces:
CacheService<K,V>
- Direct Known Subclasses:
NoopProfileCache
public class NoopCacheService<K,V> extends Object implements CacheService<K,V>
A no-op (pass-through) cache service for Trellis.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.trellisldp.api.CacheService
CacheService.TrellisProfileCache
-
-
Constructor Summary
Constructors Constructor Description NoopCacheService()
-
-
-
Method Detail
-
get
public V get(K key, Function<K,V> mappingFunction)
Description copied from interface:CacheService
Get a value from the cache.- Specified by:
get
in interfaceCacheService<K,V>
- Parameters:
key
- the keymappingFunction
- attempts to compute a mapping for the specified key- Returns:
- a value for that key, never
null
-
-