Package org.jdbi.v3.core.cache
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.
@FunctionalInterface public interface JdbiCacheLoader<K,V>Creates a new value for aJdbiCache.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Vcreate(K key)Create a new value for caching from a cache key.
-
-
-
Method Detail
-
create
V create(K key)
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.
-
-