Creates new memory persistence instance.
Signal identifier (entity folder name)
Bucket name (subfolder under memory/)
No-op for the default file-based implementation. Resource cleanup (memo cache invalidation) is handled by PersistMemoryUtils.dispose().
Checks whether a memory entry exists on disk (regardless of removed flag).
Memory entry identifier
Promise resolving to true if entry file exists
Iterates all memory entries in the bucket, yielding id + data tuples for non-removed entries only.
AsyncGenerator yielding { memoryId, data } tuples
Reads a memory entry by id. Returns null if entry is missing or soft-deleted.
Memory entry identifier
Promise resolving to entry data, or null
Soft-deletes a memory entry by writing removed: true flag.
Memory entry identifier
Promise that resolves when removal is complete
Initializes the underlying PersistBase storage.
Whether this is the first initialization
Promise that resolves when initialization is complete
Writes a memory entry under the given id.
Entry data to persist
Memory entry identifier
Promise that resolves when write is complete
Default file-based implementation of IPersistMemoryInstance.
Features:
removed: trueflagExample