Skip to main content

Module storage

Module storage 

Source
Expand description

§Persistence Layer

Handles backend traits, repository interfaces, query limits, and storage errors. This is the persistence stage of the memory pipeline: Episode → [pre_storage: ingest] → [storage: persistence] → Backend

Responsibilities: backend trait definitions, repository interfaces, query construction, error types, and circuit breaker patterns.

Modules§

circuit_breaker
Circuit Breaker Pattern for Storage Resilience

Constants§

DEFAULT_QUERY_LIMIT
Default limit for query operations (when not specified)
MAX_QUERY_LIMIT
Maximum limit for query operations (prevents OOM)

Traits§

StorageBackend
Unified storage backend trait

Functions§

apply_query_limit
Apply limit with defaults and bounds checking.