I have a table in sql server which I will query many times from the .net MVC code and I want to implement appfabric cache instead of sql server query(only for this query). How do I implement this? If the query is like- select address from people where id = @cid;
cid can be 1,2 or 3 which comes from the code
Whichever cache you use, you would add different cache entries for each query, using a construct of a base key and the ID as the cache key, and the return from the database as the cached value: