Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I created cache to the query results(i.e to dataset) in c# console application but i want to access the that created cache in my web application.If it is possible how can i access the cache in my web application fron console application.I dont have much knowledge in cache please give me detailed
C#
Cache[TextBox1.Text] = Jobs;
Cache.Insert(TextBox1.Text, Jobs);
Cache.Insert(TextBox1.Text,Jobs, null, DateTime.Now.AddMinutes(10), Cache.NoSlidingExpiration);
string strCache = "";
string strKey;
foreach (DictionaryEntry objItem in Cache)
{
   strKey = objItem.Key.ToString();
   strCache = strKey + " : " + DateTime.Now.ToString() + "Cache Expires at" + ":" +       DateTime.Now.AddMinutes(10);
}
Posted
Updated 14-May-14 20:00pm
v2
Comments
DamithSL 15-May-14 0:50am    
how you create the cache in your web app? update the question with that code

1 solution

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