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)
253
if (policy.AbsoluteExpiration !=
ObjectCache
.InfiniteAbsoluteExpiration
254
&& policy.SlidingExpiration !=
ObjectCache
.NoSlidingExpiration)
258
if (policy.SlidingExpiration <
ObjectCache
.NoSlidingExpiration || s_oneYear < policy.SlidingExpiration)
260
throw new ArgumentOutOfRangeException(nameof(policy), RH.Format(SR.Argument_out_of_range, "SlidingExpiration",
ObjectCache
.NoSlidingExpiration, s_oneYear));
405
DateTimeOffset absExp =
ObjectCache
.InfiniteAbsoluteExpiration;
406
TimeSpan slidingExp =
ObjectCache
.NoSlidingExpiration;
596
Set(key, value,
ObjectCache
.InfiniteAbsoluteExpiration);
684
DateTimeOffset absExp =
ObjectCache
.InfiniteAbsoluteExpiration;
685
TimeSpan slidingExp =
ObjectCache
.NoSlidingExpiration;
735
&& absoluteExpiration ==
ObjectCache
.InfiniteAbsoluteExpiration
736
&& slidingExpiration ==
ObjectCache
.NoSlidingExpiration)
763
ObjectCache
.InfiniteAbsoluteExpiration,
764
ObjectCache
.NoSlidingExpiration,