CachePolicy
How long a load's outcome is stored. ttl is for a value (Lookup.Found), missTtl for a confirmed miss (Lookup.Missing); both are measured from the load's completion. A failure is never stored. Build one with the factory CachePolicy(ttl) { missTtl = … }.
Stable Core. A ttl of Duration.ZERO coalesces loads in flight and stores nothing; Duration.INFINITE is allowed. Equality is on both durations; toString() prints both.
Types
Collects the optional properties of a CachePolicy. Not thread-safe; use it only inside the factory's lambda. Stable Core. Today its only property is missTtl; further optional policy properties, when they exist, are added here rather than to the factory's parameter list.
The default of Builder.missTtl.
Properties
How long a Lookup.Missing is stored; zero stores nothing. Not negative.
How long a Lookup.Found is stored; zero stores nothing (loads in flight still coalesce). Not negative.