QueryCountCacheOptions

class QueryCountCacheOptions @InternalWowApi constructor(val maxEntries: Int = DEFAULT_MAX_ENTRIES, val ttl: Duration = DEFAULT_TTL, val pagedTotals: Boolean = false)

The bounds of a QueryCountCache: at most maxEntries counts, the least recently used evicted first, each served for at most ttl after it was counted, however long its checkpoint holds. The ttl bounds what the checkpoint cannot see: a snapshot written but not yet checkpointed (on another node, up to the checkpoint interval), or written outside the snapshot subscription. pagedTotals lets it serve the totals of paged queries too, off by default: a total served from this node's cache while another node's write is already in the page's rows would not agree with them, so by default a total is counted with its page.

Fields may be added: Wow builds it from the host's configuration, so the constructor is internal to Wow.

Constructors

Link copied to clipboard
constructor(maxEntries: Int = DEFAULT_MAX_ENTRIES, ttl: Duration = DEFAULT_TTL, pagedTotals: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String