Documentation
¶
Overview ¶
Package maintenance keeps the store healthy: a background sweeper purges expired memories and bounds short-term capacity, and fsck additionally audits live memories for duplicate (poisoning) clusters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnforceShortTermCap ¶
EnforceShortTermCap evicts the lowest-retention short-term memories in each namespace that holds more than cap of them. cap <= 0 disables it. Returns the number evicted.
Types ¶
type Report ¶
type Report struct {
ExpiredPurged int `json:"expired_purged"`
ShortTermEvicted int `json:"short_term_evicted"`
Namespaces int `json:"namespaces"`
DuplicateGroups [][]string `json:"duplicate_groups,omitempty"`
}
Report summarizes a consistency sweep.
type Sweeper ¶
type Sweeper struct {
// contains filtered or unexported fields
}
Sweeper periodically purges expired memories and enforces the short-term cap.
Click to show internal directories.
Click to hide internal directories.