菜鸟问题。求高手解答(缓存问题)
public class DataCache
{
public DataCache()
{
//
// TODO: Add constructor logic here
//
}
public static object GetCache(string CacheKey)
{
System.Web.Caching.Cache objCache = HttpRuntime.Cache;//不懂 就是这里。。
return objCache[CacheKey];
}
public static void SetCache(string CacheKey, object objObject)
{
System.Web.Caching.Cache objCache = HttpRuntime.Cache;
objCache.Insert(CacheKey, objObject);
}
如上代码。。。这样写是什么意思???