Skip to main content

Module pruning

Module pruning 

Source
Expand description

Memory entry pruning — removes weak or stale entries to keep the store compact.

Constants§

DEFAULT_MIN_STRENGTH
Default minimum strength below which entries are prunable.

Functions§

default_min_age
Default minimum age before an entry can be pruned (24 hours).
prune_weak_entries
Prune memory entries whose strength has decayed below a threshold and are older than a minimum age.