Skip to content

API Reference parrot.semantic.cache

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.semantic.cache

View source

LRU of pre-governance CompiledQuery objects only (AC8).

Class CacheableCompiled

A compiled artefact with a canonical-JSON cache key whose first element is the model digest.

Attributes:

Attribute Type Description
cache_key str

Class CompileCache

Bounded LRU keyed by CompiledQuery.cache_key with a model-digest index.

Parameter Type Default Description
max_entries int 512

Method CompileCache.get

get(key: str) -> CacheableCompiled | None

Parameter Type Default Description
key str

Returns: CacheableCompiled | None

Method CompileCache.put

Insert by compiled.cache_key; evict least-recently-used beyond the bound.

put(compiled: CacheableCompiled) -> None

Parameter Type Default Description
compiled CacheableCompiled

Method CompileCache.invalidate_model

Drop entries compiled for model_digest; returns the count.

invalidate_model(model_digest: str) -> int

Parameter Type Default Description
model_digest str

Returns: int

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally