Exemplo n.º 1
0
 private static bool EntryExpired(CacheEntry entry, DateTimeOffset now)
 {
     return entry.AbsoluteExpiration < now || (now - entry.LastAccess) > entry.SlidingExpiration;
 }
Exemplo n.º 2
0
 private static bool EntryExpired(CacheEntry entry, DateTimeOffset now)
 {
     return(entry.AbsoluteExpiration < now || (now - entry.LastAccess) > entry.SlidingExpiration);
 }