IPersistBase

Persistence interface for CRUD operations. Implemented by PersistBase.

waitForInit: (initial: boolean) => Promise<void>

Initialize persistence directory and validate existing files. Uses singleshot to ensure one-time execution.

readValue: (entityId: EntityId) => Promise<Entity>

Read entity from persistence storage.

hasValue: (entityId: EntityId) => Promise<boolean>

Check if entity exists in storage.

writeValue: (entityId: EntityId, entity: Entity) => Promise<void>

Write entity to storage with atomic file writes.