Export (0) Print
Expand All

DefaultCacheCapabilities Enumeration

Represents a set of features that a cache implementation provides.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  System.Runtime.Caching
Assembly:  System.Runtime.Caching (in System.Runtime.Caching.dll)

[FlagsAttribute]
public enum class DefaultCacheCapabilities

Member nameDescription
AbsoluteExpirationsA cache implementation supports the ability to automatically remove cache entries at a specific date and time.
CacheEntryChangeMonitorsA cache implementation supports the ability to create change monitors that monitor entries.
CacheEntryRemovedCallbackA cache implementation can raise a notification that an entry has been removed from the cache.
CacheEntryUpdateCallbackA cache implementation can raise a notification that an entry is about to be removed from the cache. This setting also indicates that a cache implementation supports the ability to automatically replace the entry that is being removed with a new cache entry.
CacheRegionsA cache implementation supports the ability to partition its storage into cache regions, and supports the ability to insert cache entries into those regions and to retrieve cache entries from those regions.
InMemoryProviderA cache implementation runs at least partially in memory. A distributed cache would not set this flag, whereas an in-memory cache such as the MemoryCache class would do so.
NoneA cache implementation does not provide any of the features that are described in the DefaultCacheCapabilities enumeration.
OutOfProcessProviderA cache implementation runs out-of-process. A distributed cache would set this flag, whereas an in-memory cache such as the MemoryCache class would not.
SlidingExpirationsA cache implementation supports the ability to automatically remove cache entries that have not been accessed in a specified time span.

The DefaultCacheCapabilities class is a flag enumeration. The field values are bits and can be combined as a set of flags that describe the capabilities of the cache.

The DefaultCacheCapabilities enumeration can be used to programmatically set the behavior of the cache implementation. This behavior is based on the combination of features that a particular cache implements.

.NET Framework

Supported in: 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft