InMemoryStoreStats

data class InMemoryStoreStats(val size: Int, val evictions: Long, val expirations: Long, val bytes: Long = 0)

Point-in-time view of an InMemoryStore.

Constructors

Link copied to clipboard
constructor(size: Int, evictions: Long, expirations: Long, bytes: Long = 0)

Properties

Link copied to clipboard
val bytes: Long

Estimated resident bytes of the entries held (embeddings dominate: dimensions * 4 each).

Link copied to clipboard

Entries dropped to stay within maxEntries or maxBytes, since construction.

Link copied to clipboard

Entries dropped for being past their TTL, since construction.

Link copied to clipboard
val size: Int

Live entries, expired ones excluded.