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 a JdbiCache.
    • 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.