Skip to main content

Crate roma_memory

Crate roma_memory 

Source
Expand description

Layered memory system (L0-L4).

Provides FileMemoryStore as the default file-backed implementation. The MemoryStore trait, MemoryError, MemoryLevel, and NullMemoryStore are defined in roma-core and re-exported here for backward compatibility.

Structs§

FileMemoryStore
File-backed memory store with per-level validators.
L1MaxLines
L1 validator: enforce a maximum line count.
L2SectionGuard
L2 validator: enforce required markdown sections exist.
NullForgetter
A no-op forgetter that never consolidates. Useful as a default.
NullMemoryStore
No-op implementation used in tests that don’t need real persistence.
SimpleForgetter
Simple forgetter that merges the oldest L3 files when the count exceeds the threshold. Files are concatenated into a single _consolidated_<n>.md and the originals are deleted.

Enums§

MemoryError
Memory store errors.
MemoryLevel
Memory level.
PatchError
Uniqueness-checked patch errors.

Traits§

Forgetter
Strategy for pruning/consolidating long-term memory when it grows too large.
MemoryStore
Pluggable memory backend.
MemoryValidator
Structural validator for a memory level.