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>]
type 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

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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

Community Additions

ADD
Show:
© 2014 Microsoft