aspnetcore
aspnetcore copied to clipboard
HybridCache: Enable setting expiration based on value in factory
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