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); }
public void Teardown() { barrel?.EmptyAll(); }