示例#1
0
        public void DeletionTest()
        {
            ComplexType t = new ComplexType()
            {
                Date   = DateTime.Now,
                Value  = 489.9,
                Titles = new List <string>()
                {
                    "President",
                    "Operations"
                }
            };

            var success = cache.Set <ComplexType>(Areas.General, "test", "3", t);

            cache.Delete(Areas.General, "test", "3");

            var gone = cache.Get <ComplexType>(Areas.General, "test", "3");

            Assert.IsNull(gone);
        }
示例#2
0
 public void Delete(Areas area, string field, string key)
 {
     cache.Delete(area, field, key);
 }