Skip to content

Solutions for ReuseTTL Context Cancellation Issue #4

@derlaft

Description

@derlaft

If ReuseTTL is used, then, after TTL amount of time a background refresh expected to happen if there are any calls to the same key.

However, this interacts/conflicts with providing contexts into the cached function. It might be called with an already aborted context which results in a failure.

Example: https://go.dev/play/p/p3hdad2N7af

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions