Interface JdbiCacheLoader<K,V>
- Type Parameters:
K
- A key type for the cache.V
- A value type for the cache.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Creates a new value for a
JdbiCache
.-
Method Summary
-
Method Details
-
create
Create a new value for caching from a cache key.- Parameters:
key
- The key that the value will be associated with. Never null.- Returns:
- A value for the cache to store. May return null if no value could be created; the cache is expected to ignore null values and should call the loader again.
-