aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

HybridCache: Enable setting expiration based on value in factory

Open lindeberg opened this issue 1 week ago • 0 comments

Is there an existing issue for this?

  • [X] 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

lindeberg avatar Jun 27 '24 13:06 lindeberg