Package play.cache.caffeine
Class CaffeineParser
- Object
-
- play.cache.caffeine.CaffeineParser
-
public final class CaffeineParser extends Object
A configuration parser for theCaffeine
builder.initial-capacity=[integer]
: setsCaffeine.initialCapacity
.maximum-size=[long]
: setsCaffeine.maximumSize
.weak-keys
=[condition]: setsCaffeine.weakKeys()
.weak-values
=[condition]: setsCaffeine.weakValues()
.soft-values
=[condition]: setsCaffeine.softValues()
.record-stats
=[condition]: setsCaffeine.recordStats()
.executor
=[string]: setsCaffeine.executor
.
maximumSize
andmaximumWeight
weakValues
andsoftValues
set totrue
CaffeineParser
does not support configuringCaffeine
methods with non-value parameters. These must be configured in code.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.github.benmanes.caffeine.cache.Caffeine<Object,Object>
from(com.typesafe.config.Config config, ActorSystem actorSystem)
Returns a configuredCaffeine
cache builder.
-
-
-
Method Detail
-
from
public static com.github.benmanes.caffeine.cache.Caffeine<Object,Object> from(com.typesafe.config.Config config, ActorSystem actorSystem)
Returns a configuredCaffeine
cache builder.
-
-