Package org.cache2k
Interface KeyValueSource<K,V>
-
- All Superinterfaces:
DataAware<K,V>
- All Known Subinterfaces:
Cache<K,V>
- All Known Implementing Classes:
AbstractCache
,ForwardingCache
public interface KeyValueSource<K,V> extends DataAware<K,V>
Reduced interface to return a value selected by a key object. Cache users of a read-through cache may choose this simple interface for requesting data only, rather to use the full-blown cache interface.- Author:
- Jens Wilke
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description V
get(K key)
Returns a value associated with this key.
-
-
-
Method Detail
-
get
@Nullable V get(K key)
Returns a value associated with this key.- See Also:
Cache.get(Object)
-
-