DefaultCacheCapabilities Enumeration

.NET Framework (current version)
 

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
AbsoluteExpirations

A cache implementation supports the ability to automatically remove cache entries at a specific date and time.

CacheEntryChangeMonitors

A cache implementation supports the ability to create change monitors that monitor entries.

CacheEntryRemovedCallback

A cache implementation can raise a notification that an entry has been removed from the cache.

CacheEntryUpdateCallback

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

CacheRegions

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

InMemoryProvider

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

None

A cache implementation does not provide any of the features that are described in the DefaultCacheCapabilities enumeration.

OutOfProcessProvider

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

SlidingExpirations

A 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
Available since 4.0
Return to top
Show: