Class CacheFactory.Builder<K,V>

java.lang.Object
com.github.benmanes.caffeine.jcache.CacheFactory.Builder<K,V>
Enclosing class:
CacheFactory

private static final class CacheFactory.Builder<K,V> extends Object
A one-shot builder for creating a cache instance.
  • Field Details

  • Constructor Details

  • Method Details

    • build

      public CacheProxy<K,V> build()
      Creates a configured cache.
    • isReadThrough

      private boolean isReadThrough()
      Determines if the cache should operate in read through mode.
    • newCacheProxy

      private CacheProxy<K,V> newCacheProxy()
      Creates a cache that does not read through on a cache miss.
    • newLoadingCacheProxy

      private CacheProxy<K,V> newLoadingCacheProxy()
      Creates a cache that reads through on a cache miss.
    • configureMaximumSize

      private boolean configureMaximumSize()
      Configures the maximum size and returns if set.
    • configureMaximumWeight

      private boolean configureMaximumWeight()
      Configures the maximum weight and returns if set.
    • configureExpireAfterWrite

      private boolean configureExpireAfterWrite()
      Configures the write expiration and returns if set.
    • configureExpireAfterAccess

      private boolean configureExpireAfterAccess()
      Configures the access expiration and returns if set.
    • configureExpireVariably

      private boolean configureExpireVariably()
      Configures the custom expiration and returns if set.
    • configureJCacheExpiry

      private boolean configureJCacheExpiry()
    • configureRefreshAfterWrite

      private void configureRefreshAfterWrite()