Implements IPersistMeasureInstance
Default file-based implementation of IPersistMeasureInstance.
Features:
removed: true flagconstructor(bucket: string);
bucket: string
_storage: any
Underlying file-based storage for this bucket
waitForInit(initial: boolean): Promise<void>;
Initializes the underlying PersistBase storage.
readMeasureData(key: string): Promise<MeasureData | null>;
Reads a measure entry by key. Returns null if entry is missing or soft-deleted.
writeMeasureData(data: MeasureData, key: string): Promise<void>;
Writes a measure entry under the given key.
removeMeasureData(key: string): Promise<void>;
Soft-deletes an entry by writing removed: true flag while preserving the file.
listMeasureData(): AsyncGenerator<string>;
Iterates all entries in the bucket, yielding keys of non-removed entries only.