Polly
Polly copied to clipboard
Distributed cache: How do I add context data to the cached object?
What is a good way for me to intercept a response before it gets cached, so I can add some additional context data to it? I have my context data added to the polly context, I am just not finding how to intercept before polly puts it in the cache.
I did this by amending in the ttl handler. Not ideal. Any chance we could pass context to the custom serializer?
This issue is stale because it has been open for 60 days with no activity. It will be automatically closed in 14 days if no further updates are made.
This issue was closed because it has been inactive for 14 days since being marked as stale.