Iterate all non-removed entry keys for this bucket.
AsyncGenerator yielding entry keys
Read cached entry by key.
Cache key within the bucket
Promise resolving to cached value, or null if not found or soft-deleted
Soft-delete an entry by setting its removed flag.
File stays on disk, but subsequent reads return null.
Cache key within the bucket
Promise that resolves when removal is complete
Initialize storage for this bucket.
Whether this is the first initialization
Promise that resolves when initialization is complete
Write entry to cache.
Data to cache
Cache key within the bucket
Promise that resolves when write is complete
Per-bucket measure cache persistence instance interface. Used by Cache.file for caching external API responses.
Supports soft delete: removed entries stay on disk with
removed: trueflag and are filtered out by read/list operations.Custom adapters should implement this interface to override the default file-based measure cache behavior.