Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
I have a web service that puts named list of strings on to memory by using Context.Cache. I want to have the choice to save my list of strings if something goes wrong, like if the poster or the reader disconnects some how. So I am wondering if there is a way to put messages from cache and directly put into the HDD.

If not, would it be better to grab the messages from the memory and put it into the instance of the web service, then onto the HDD or a SQL server?

Which would be best for speed? Please if you have questions, put it in the comments. Thank you for the help!
Posted
Updated 14-Jul-11 11:35am
v2

1 solution

I do not understand what you mean by HDD, does it mean storing the strings in a text file in the hard disk? If yes, SQL Server would be a far more superior, efficient and scalable option that using text files. You can write your own custom Cache class that stores its content in an SQL Server database.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900