Skip to main content

Module store

Module store 

Source

Structs§

MemoryQuery
MemoryRecord

Enums§

MemoryError

Constants§

DEFAULT_LIMIT
Default per-query record cap.
MAX_CONTENT_BYTES
Maximum content length per record (UTF-8 byte length).

Functions§

append
Append one record. Validates namespace, content size. Atomic per-line via O_APPEND.
list_namespaces
List existing namespaces under the memory dir.
memory_dir
Path to the memory directory under base. Caller creates dirs lazily.
new_record
Build a record with now_ms() timestamp.
now_ms
Current Unix epoch in milliseconds.
query
Query records in a namespace, applying filters, returning most-recent-first up to limit.