Package com.axelor.cache
Interface CacheLoader<K,V>
- Type Parameters:
K
- the type of keysV
- the type of values
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Computes or retrieves values, based on a key, for use in populating an
AxelorCache
.
Warning: loading must not attempt to update any mappings of the cache directly.
-
Method Summary
-
Method Details
-
load
Computes or retrieves the value corresponding tokey
.- Parameters:
key
- the non-null key whose value should be loaded- Returns:
- the value associated with
key
ornull
if not found
-