1 type derived from ObjectCache
System.Runtime.Caching (1)
System\Runtime\Caching\MemoryCache.cs (1)
20public class MemoryCache : ObjectCache, IEnumerable, IDisposable
23 references to ObjectCache
System.Runtime.Caching (23)
System\Runtime\Caching\CacheEntryRemovedArguments.cs (3)
9private readonly ObjectCache _source; 22public ObjectCache Source 27public CacheEntryRemovedArguments(ObjectCache source, CacheEntryRemovedReason reason, CacheItem cacheItem)
System\Runtime\Caching\CacheEntryUpdateArguments.cs (3)
13private readonly ObjectCache _source; 32public ObjectCache Source 49public CacheEntryUpdateArguments(ObjectCache source, CacheEntryRemovedReason reason, string key, string regionName)
System\Runtime\Caching\CacheItemPolicy.cs (2)
52_absExpiry = ObjectCache.InfiniteAbsoluteExpiration; 53_sldExpiry = ObjectCache.NoSlidingExpiration;
System\Runtime\Caching\CacheMemoryMonitor.cs (1)
254IServiceProvider host = ObjectCache.Host;
System\Runtime\Caching\HostFileChangeMonitor.cs (1)
93IServiceProvider host = ObjectCache.Host;
System\Runtime\Caching\MemoryCache.cs (13)
230if (policy.AbsoluteExpiration != ObjectCache.InfiniteAbsoluteExpiration 231&& policy.SlidingExpiration != ObjectCache.NoSlidingExpiration) 235if (policy.SlidingExpiration < ObjectCache.NoSlidingExpiration || s_oneYear < policy.SlidingExpiration) 237throw new ArgumentOutOfRangeException(nameof(policy), RH.Format(SR.Argument_out_of_range, "SlidingExpiration", ObjectCache.NoSlidingExpiration, s_oneYear)); 382DateTimeOffset absExp = ObjectCache.InfiniteAbsoluteExpiration; 383TimeSpan slidingExp = ObjectCache.NoSlidingExpiration; 558Set(key, value, ObjectCache.InfiniteAbsoluteExpiration); 646DateTimeOffset absExp = ObjectCache.InfiniteAbsoluteExpiration; 647TimeSpan slidingExp = ObjectCache.NoSlidingExpiration; 697&& absoluteExpiration == ObjectCache.InfiniteAbsoluteExpiration 698&& slidingExpiration == ObjectCache.NoSlidingExpiration) 725ObjectCache.InfiniteAbsoluteExpiration, 726ObjectCache.NoSlidingExpiration,