MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / create_plan_cache_key

Function create_plan_cache_key

graphlite/src/cache/plan_cache.rs:367–379  ·  view source on GitHub ↗

Helper to create plan cache key from query and context

(
    query_ast_hash: u64,
    schema_hash: u64,
    optimization_level: &str,
    hints: Vec<String>,
)

Source from the content-addressed store, hash-verified

365
366/// Helper to create plan cache key from query and context
367pub fn create_plan_cache_key(
368 query_ast_hash: u64,
369 schema_hash: u64,
370 optimization_level: &str,
371 hints: Vec<String>,
372) -> PlanCacheKey {
373 PlanCacheKey {
374 query_structure_hash: query_ast_hash,
375 schema_hash,
376 optimization_level: optimization_level.to_string(),
377 hints,
378 }
379}

Callers 2

get_query_planMethod · 0.85
cache_query_planMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected