Documentation
¶
Overview ¶
Package memory exposes process-wide cache reclamation hooks for modules and downstream products built on Sailry Harness.
Index ¶
Constants ¶
const ( // Idle runs on periodic background ticks to evict expired or inactive entries. Idle = internalmemory.Idle // Pressure runs when Go heap metrics cross high-water thresholds. Pressure = internalmemory.Pressure )
Variables ¶
This section is empty.
Functions ¶
func CheckPressure ¶
func CheckPressure() bool
CheckPressure samples Go heap metrics and runs Trim(Pressure) when heap usage exceeds high-water thresholds outside the cooldown window.
Types ¶
type Level ¶
type Level = internalmemory.Level
Level describes how aggressively registered caches should reclaim memory.