Skip to main content

Module cache_warmer

Module cache_warmer 

Source
Expand description

Cache Pre-Warming

Implements a cache pre-warming system that generates and tracks warming jobs based on common query patterns, ensuring the prompt cache is populated with frequently-requested content before real traffic arrives.

§Key Types

  • WarmingStrategy — controls which patterns are expanded into jobs
  • WarmingPattern — a parameterised template with variable substitutions
  • CacheWarmer — orchestrates job generation and status tracking

Structs§

CacheWarmer
Orchestrates cache pre-warming across a set of WarmingPatterns.
WarmingJob
A single unit of warming work.
WarmingPattern
A template with named variable slots and their possible values.
WarmingStats
Aggregate statistics for a CacheWarmer session.

Enums§

WarmingStatus
Life-cycle status of a single warming job.
WarmingStrategy
Strategy governing which patterns the warmer expands into jobs.