I would like to use Cache for my web application.
Here is the question
I found this link, http://msdn.microsoft.com/en-us/library/18c1wd61.aspx
For that link, all the example use something like Cache["KeyName"]="blah blah blah";
When I try to do the same thing, I have an error message, said "using System.Web.Caching.Cache is a type but used like a variable"
What should I do?
Do I have to create an instance?
My Example
string test = "123";
if (HttpContext.Cache["test"] != null)
test = (string)HttpContext.Cache["test"];
else
HttpContext.Cache["test"] = test;