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);
        }
Example #2
0
 /// <summary>
 /// Clears all elements from the cache.
 /// </summary>
 public void Flush()
 {
     _lastFlush = DateTime.Now.Ticks;
     _controller.Flush();
 }