Skip to content

HybridCache: Enable setting expiration based on value in factory #7097

@lindeberg

Description

@lindeberg

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

My HybridCache factory is fetching data from an HTTP API. The fetch response includes a maxAge header, from which I want to set cache expiration.

There's no way of getting the value from the factory method to the expiration setting.

Describe the solution you'd like

Some way to enable this

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions