public void GetETagTest() { var tag = "etag"; //Saves the cache and pass it a timespan for expiration barrel.Add(key: url, data: json, expireIn: TimeSpan.FromDays(1), eTag: tag); var cached = barrel.GetETag(url); Assert.AreEqual(cached, tag); }
public void GetETagTest() { var tag = "etag"; //Saves the cache and pass it a timespan for expiration barrel.Add(key: url, data: json, expireIn: TimeSpan.FromDays(1), eTag: tag); var cached = barrel.GetETag(url); Assert.AreEqual(cached, tag); }