our project uses HttpRuntime.Cache.Get and HttpRuntime.Cache.Insert for storing and retrieving data from the cache.
Is it possible to store this cache in a SQL server database?
By data I am referring to all sorts of different object types.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The HttpRuntime Cache is bound to the appdomain of the current application and you can control how it is stored. It does smart management on the cache, like clearing objects before there lifespan in the cache is over when you are low on memory. The main point of having the cache in memory is realy fast access to your cached objects. You have no control in where or how the data is stored.
If you have some reason to store the data out of your process, you have the possiblity to implement your own caching.
For example you can share this cache between multiple appdomains.
MSDN Understanding Caching Technologies