Skip to main content

Module cache

Module cache 

Source
Expand description

Query Cache Module

Provide a unified cache management function, including: Query plan cache (Prepared Statement) CTE result caching

§Module Structure

  • config: Configuration for the plan and CTE caches
  • stats: Statistics collection and reporting
  • plan_cache: Query plan cache (Prepared Statement style)
  • cte_cache: CTE result cache

Re-exports§

pub use config::CachePriority;
pub use config::CteCacheConfig;
pub use config::PlanCacheConfig;
pub use stats::CteCacheStats;
pub use stats::CteCacheStatsSnapshot;
pub use stats::MemoryStats;
pub use stats::PlanCacheStats;
pub use stats::PlanCacheStatsSnapshot;
pub use plan_cache::CachedPlan;
pub use plan_cache::ParamPosition;
pub use plan_cache::ParameterizedQueryHandler;
pub use plan_cache::PlanCacheContext;
pub use plan_cache::PlanCacheKey;
pub use plan_cache::QueryPlanCache;
pub use cte_cache::CteCacheDecision;
pub use cte_cache::CteCacheDecisionMaker;
pub use cte_cache::CteCacheEntry;
pub use cte_cache::CteCacheManager;

Modules§

config
Unified Cache Configuration Module
cte_cache
CTE Results Cache Manager Module
plan_cache
Query Plan Cache Module
stats
Unified Cache Statistics Module

Structs§

CacheStats