我們可以在HttpRuntime Cache中設置一個項目的最大過期時間是多少?
什麼是默認的到期時間..?HttpRuntime Cache ....中項目的有效期限是多少?
public static void Add(string pName, object pValue)
{
System.Web.HttpRuntime.Cache.Add(pName, pValue, null, DateTime.Now.AddSeconds(60), TimeSpan.Zero, System.Web.Caching.CacheItemPriority.High, null);
}
在上面的代碼中第四個參數是'absoluteExpiration'。
我們可以在這裏提供的最大值是多少...?
如果我提供10-05-2014,該項目是否可在緩存中長時間使用......?
(此查詢與AppFabric緩存的實現有關,嘗試用AppFabric緩存代替Httpruntime緩存)。