using Sony.Filtr.DistributedCaching; using System; namespace Sony.Filtr.AdminAPI.Extensions { public static class CacheExtensions { public static bool ShouldReloadData(this SpecialListCacheItem cache, TimeSpan cacheTime) where T : class { return cache == null || cache.UtcCacheTime < DateTime.UtcNow.Add(-cacheTime); } } }