This topic has not yet been rated - Rate this topic

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 DefaultCacheCapabilities
Member nameDescription
NoneA cache implementation does not provide any of the features that are described in the DefaultCacheCapabilities enumeration.
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.
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.
CacheEntryChangeMonitorsA cache implementation supports the ability to create change monitors that monitor entries.
AbsoluteExpirationsA cache implementation supports the ability to automatically remove cache entries at a specific date and time.
SlidingExpirationsA cache implementation supports the ability to automatically remove cache entries that have not been accessed in a specified time span.
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.
CacheEntryRemovedCallbackA cache implementation can raise a notification that an entry has been removed from the cache.
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.

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, 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.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.