public final class CaffeineParser
extends java.lang.Object
Caffeine
builder.
initial-capacity=[integer]
: sets Caffeine.initialCapacity
.
maximum-size=[long]
: sets Caffeine.maximumSize
.
weak-keys
=[condition]: sets Caffeine.weakKeys()
.
weak-values
=[condition]: sets Caffeine.weakValues()
.
soft-values
=[condition]: sets Caffeine.softValues()
.
record-stats
=[condition]: sets Caffeine.recordStats()
.
maximumSize
and maximumWeight
weakValues
and softValues
set to true
CaffeineParser
does not support configuring Caffeine
methods with non-value
parameters. These must be configured in code.
Modifier and Type | Method and Description |
---|---|
static com.github.benmanes.caffeine.cache.Caffeine<java.lang.Object,java.lang.Object> |
from(com.typesafe.config.Config config)
Returns a configured
Caffeine cache builder. |