Let me explain my case. Let’s say we have a widget on a page and the user request the last 4 hours of data. I then have a request with a relative time range of Now -4 hours. At the first request, we get the data and cache it with, let’s say a key of *-4h and we give back the orignal absolute start and end time of the request.
10 minutes later, the user clicks refresh which will still be Now-4 hours. I would get the same key but I would expect different results. What I would like to do is to retrieve the data I have from cache, truncate the first 10 minutes and only get the 10 minutes missing from the datasource. I would then have to recache the result.
Before I go and explore this, can you tell me if this is something feasible? I know I could probably get the cached data and recreate it but how to cache it again if what I am doing is not inside the delegate of the ToOptimizedResultUsingCache?
Thanks for your help.