Polly icon indicating copy to clipboard operation
Polly copied to clipboard

Distributed cache: How do I add context data to the cached object?

Open vpopescu opened this issue 4 years ago • 1 comments

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.

vpopescu avatar Jan 14 '21 23:01 vpopescu

I did this by amending in the ttl handler. Not ideal. Any chance we could pass context to the custom serializer?

vpopescu avatar Jan 19 '21 18:01 vpopescu

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.

github-actions[bot] avatar Jul 04 '23 02:07 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jul 18 '23 02:07 github-actions[bot]