Creates a builder of cache configuration.
Defines a predicate indicating whether a given entry is evictable.
Defines a predicate indicating whether a given entry is evictable.
Defines a duration of time after which idle entries should be auto-evicted.
Defines a function returning the duration of time after which a given idle entry should be auto-evicted.
Defines a function returning the duration of time after which a given idle entry should be auto-evicted.
CacheConfiguration.Builder.whenEvicted(com.github.benmanes.caffeine.cache.RemovalListener<K,V> listener)
Defines a listener to be notified on entry eviction.
Defines a consumer to be notified on entry eviction.
CacheConfiguration.Builder.whenRemoved(com.github.benmanes.caffeine.cache.RemovalListener<K,V> listener)
Defines a listener to be notified on entry removal.
Defines a consumer to be notified on entry removal.
Defines an executor for use with time-based eviction.
CacheConfiguration.Builder.withExpiry(com.github.benmanes.caffeine.cache.Expiry<K,V> expiry)
Defines the logic used to determine the duration of time after which a given idle entry should be auto-evicted.
Defines the maximum weight of entries in the cache
CacheConfiguration.Builder.withScheduler(com.github.benmanes.caffeine.cache.Scheduler scheduler)
Defines a scheduler for use with time-based eviction.
CacheConfiguration.Builder.withWeigher(com.github.benmanes.caffeine.cache.Weigher<K,V> weigher)
Defines a weigher used to determine the weight a given cache entry.
Defines a function used to determine the weight of a given cache entry.