【发布时间】:2011-07-01 22:52:46
【问题描述】:
我有以下代码:
var tempList = new BrandCollection();
if (HttpContext.Current.Cache["cachedDeviceList"] == null)
{
tempList = Provider.GetDeviceData(info);
HttpContext.Current.Cache.Insert(...);
}
else
{
tempList =
}
Cache.Insert() 方法被重载,我可以在其中设置依赖关系、滑动和绝对过期。我想让缓存在午夜过期。我怎么做?提前致谢!
【问题讨论】: