111,097
社区成员




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];
}