Eviction

class Eviction(val scope: String, val prompt: String, val entryId: String, val cause: EvictionCause) : CacheEvent

An entry left the store, either evicted for capacity/memory or dropped past its TTL.

Constructors

Link copied to clipboard
constructor(scope: String, prompt: String, entryId: String, cause: EvictionCause)

Properties

Link copied to clipboard

Whether it was evicted to make room or dropped for being expired.

Link copied to clipboard

Id of the entry that left.

Link copied to clipboard

The prompt of the entry that left.

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