Creates new measure cache persistence instance.
Cache bucket identifier
Iterates all entries in the bucket, yielding keys of non-removed entries only.
AsyncGenerator yielding entry keys
Reads a measure entry by key. Returns null if entry is missing or soft-deleted.
Cache key within the bucket
Promise resolving to entry data, or null
Soft-deletes an entry by writing removed: true flag while preserving the file.
Cache key within the bucket
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 measure entry under the given key.
Data to cache
Cache key within the bucket
Promise that resolves when write is complete
Default file-based implementation of IPersistMeasureInstance.
Features:
removed: trueflagExample