110,534
社区成员
发帖
与我相关
我的任务
分享
public static object Read(string strKey)
{
if (HttpContext.Current.Cache[strKey] != null)
{
object obj = HttpContext.Current.Cache[strKey];
if (obj == null)
{
return null;
}
else
{
return obj;
}
}
else
{
return null;
}
//以上代码为什么不直接:return HttpContext.Current.Cache[strKey];
}