public void Add_Datetime_TTLAbsSli_Exist() { DateTime dt_1 = DateTime.Now; ItemCache <DateTime> ic_1 = new ItemCache <DateTime>(); ic_1.Key = "Add_Datetime_TTLAbsSli_Exist"; ic_1.Value = dt_1; ic_1.SlidingExpiration = new TimeSpan(0, 0, 10); ic_1.AbsoluteExpiration = new TimeSpan(0, 0, 25); ic_1.Save(true); System.Threading.Thread.Sleep(5000); Assert.AreEqual(true, ItemCache <DateTime> .ExistItem("Add_Datetime_TTLAbsSli_Exist")); }