State

sealed trait State

Represents the current state of the com.stuart.zcaffeine.ZCaffeine cache builder.

Used in combination with State.Conflict to restrict incompatible configurations of the underlying com.github.benmanes.caffeine.cache.Caffeine builder, like configuring both max size and max weight.

Note: using ZCaffeine.fromCaffeineSpec breaks those checks, as we don’t know for sure what has been already configured.

Companion:
object
class Object
trait Matchable
class Any