public void TestFlush() { ICacheController cc = GetController(); string testKey = "testKey"; string testVal = "testVal"; Assert.AreEqual(cc[testKey], null); cc[testKey] = testVal; Assert.AreEqual(cc[testKey], testVal); cc.Flush(); Assert.AreEqual(cc[testKey], null); }
/// <summary> /// Clears all elements from the cache. /// </summary> public void Flush() { _lastFlush = DateTime.Now.Ticks; _controller.Flush(); }