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