转换System.Web.Caching.Cache 到ASP.NET2.0
我要把一个VS2003的类转换为VS2005下的,但是下面的关于缓存得代码,我在2005里找不到合适得方法替代他,大家帮帮忙啊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);
} --------------------编程问答--------------------
补充:.NET技术 , .NET Framework