Class CaffeineLoadingCache<K,V>

java.lang.Object
org.jdbi.v3.cache.caffeine.CaffeineLoadingCache<K,V>
Type Parameters:
K - The key type.
V - The value type.
All Implemented Interfaces:
org.jdbi.v3.core.cache.JdbiCache<K,V>

public final class CaffeineLoadingCache<K,V> extends Object implements org.jdbi.v3.core.cache.JdbiCache<K,V>
Cache implementation using the caffeine cache library.
  • Method Details

    • get

      public V get(K key)
      Specified by:
      get in interface org.jdbi.v3.core.cache.JdbiCache<K,V>
    • getWithLoader

      public V getWithLoader(K key, org.jdbi.v3.core.cache.JdbiCacheLoader<K,V> loader)
      Specified by:
      getWithLoader in interface org.jdbi.v3.core.cache.JdbiCache<K,V>
    • getStats

      public com.github.benmanes.caffeine.cache.stats.CacheStats getStats()
      Specified by:
      getStats in interface org.jdbi.v3.core.cache.JdbiCache<K,V>