WriteVetoed

class WriteVetoed(val scope: String, val prompt: String, val reason: String) : CacheEvent

A write the cache declined to make because a CachePolicy vetoed it.

Distinct from Miss on purpose: nothing was looked up and nothing failed. The call that produced the response returned it normally; the cache simply did not keep a copy. Counted in CacheStats.writesVetoed.

Constructors

Link copied to clipboard
constructor(scope: String, prompt: String, reason: String)

Properties

Link copied to clipboard

The prompt whose entry was not written.

Link copied to clipboard

The PolicyVerdict.Veto.reason the policy gave, suitable as a low-cardinality metrics tag.

Link copied to clipboard
open override val scope: String

The scope the event happened in.

Functions

Link copied to clipboard
open override fun toString(): String