コード例 #1
0
        public void EmptyAllTest()
        {
            //Saves the cache and pass it a timespan for expiration
            barrel.Add(key: url, data: monkeys, expireIn: TimeSpan.FromDays(1));


            var cached = barrel.Get <IEnumerable <Monkey> >(url);

            Assert.IsNotNull(cached);

            barrel.EmptyAll();

            cached = barrel.Get <IEnumerable <Monkey> >(url);

            Assert.IsNull(cached);
        }
コード例 #2
0
 public void Teardown()
 {
     barrel?.EmptyAll();
 }