Package org.dataloader
Interface CacheKey<K>
- Type Parameters:
K
- type parameter indicating the type of the input key
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Function that is invoked on input keys of type
K
to derive keys that are required by the CacheMap
implementation.-
Method Summary
-
Method Details
-
getKey
Returns the cache key that is created from the provided input key.- Parameters:
input
- the input key- Returns:
- the cache key
-
getKeyWithContext
Returns the cache key that is created from the provided input key and context.- Parameters:
input
- the input keycontext
- the context- Returns:
- the cache key
-