1 type derived from ObjectCache
System.Runtime.Caching (1)
System\Caching\MemoryCache.cs (1)
19public class MemoryCache : ObjectCache, IEnumerable, IDisposable {
26 references to ObjectCache
System.Runtime.Caching (24)
System\Caching\CacheEntryRemovedArguments.cs (3)
11private ObjectCache _source; 22public ObjectCache Source { 26public CacheEntryRemovedArguments(ObjectCache source, CacheEntryRemovedReason reason, CacheItem cacheItem) {
System\Caching\CacheEntryUpdateArguments.cs (3)
11private ObjectCache _source; 27public ObjectCache Source { 41public CacheEntryUpdateArguments(ObjectCache source, CacheEntryRemovedReason reason, String key, String regionName) {
System\Caching\CacheItemPolicy.cs (2)
51_absExpiry = ObjectCache.InfiniteAbsoluteExpiration; 52_sldExpiry = ObjectCache.NoSlidingExpiration;
System\Caching\CacheMemoryMonitor.cs (1)
250IServiceProvider host = ObjectCache.Host;
System\Caching\HostFileChangeMonitor.cs (1)
83IServiceProvider host = ObjectCache.Host;
System\Caching\MemoryCache.cs (13)
212if (policy.AbsoluteExpiration != ObjectCache.InfiniteAbsoluteExpiration 213&& policy.SlidingExpiration != ObjectCache.NoSlidingExpiration) { 216if (policy.SlidingExpiration < ObjectCache.NoSlidingExpiration || OneYear < policy.SlidingExpiration) { 217throw new ArgumentOutOfRangeException("policy", RH.Format(R.Argument_out_of_range, "SlidingExpiration", ObjectCache.NoSlidingExpiration, OneYear)); 335DateTimeOffset absExp = ObjectCache.InfiniteAbsoluteExpiration; 336TimeSpan slidingExp = ObjectCache.NoSlidingExpiration; 489Set(key, value, ObjectCache.InfiniteAbsoluteExpiration); 566DateTimeOffset absExp = ObjectCache.InfiniteAbsoluteExpiration; 567TimeSpan slidingExp = ObjectCache.NoSlidingExpiration; 610&& absoluteExpiration == ObjectCache.InfiniteAbsoluteExpiration 611&& slidingExpiration == ObjectCache.NoSlidingExpiration) { 632ObjectCache.InfiniteAbsoluteExpiration, 633ObjectCache.NoSlidingExpiration,
System\Caching\PerfCounters.cs (1)
37IServiceProvider host = ObjectCache.Host;
System.Web (2)
Hosting\HostingEnvironment.cs (2)
410if (ObjectCache.Host == null) { 412ObjectCache.Host = objectCacheHost;