NullableCaffeineCache¶
A wrapper around a Caffeine Cache which stores null values returned by the computation in the form of explicit objects. On a conceptual level, this allows the cache to store failures so that future accesses to the same key don't recompute the same failure.
Constructors¶
NullableCaffeineCache¶
Creates a new NullableCaffeineCache by configuring a Caffeine builder with configure.
Properties¶
cache¶
estimatedSize¶
val estimatedSize: @NonNegative Long
Returns the approximate number of entries in the cache.