I have a WCF REST service which should return both Static and some filtered data based on what parameters were passed by clients (which are bold Windows clients)
Since the data store that feeds this service does not change too often, I would like to cache this data in the service (server-side caching), the data store is an Azure table, I know that the WCF REST starter set has a web cache for caching but it needs an entry in web.config to perform caching with a fixed duration (for example: 30 minutes). I wanted to do this in code whenever my record in the azure table changes. How can i do this?
In addition, since I have some processing / filtering for my service based on the parameters passed, it seems that I would need to create 2 methods, one private method with caching to receive data, and the other to process / filter and send the results. Correctly?
source
share