Skip to content

Storage::delete returns immediately without awaiting completion, causing stale reads #1085

@Barre

Description

@Barre

I have a use case where I need to guarantee that the cache is invalidated after calling Storage::delete. Currently, this method appears to return immediately without providing a way to await the actual deletion completion.

Current Behavior:

  • delete() returns immediately
  • The actual deletion happens asynchronously in the background
  • Other tasks can read stale cache entries even after delete() has been called

Expected Behavior:

  • Either delete() should be async and complete when the entry is fully removed
  • Or there should be a way to await/confirm the deletion has completed
  • No stale reads should be possible after a successful delete operation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions