DefaultCacheCapabilities DefaultCacheCapabilities DefaultCacheCapabilities DefaultCacheCapabilities Enum

Definition

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.

public enum class DefaultCacheCapabilities
[System.Flags]
public enum DefaultCacheCapabilities
type DefaultCacheCapabilities = 
Public Enum DefaultCacheCapabilities
Inheritance
DefaultCacheCapabilitiesDefaultCacheCapabilitiesDefaultCacheCapabilitiesDefaultCacheCapabilities
Attributes

Fields

AbsoluteExpirations AbsoluteExpirations AbsoluteExpirations AbsoluteExpirations 8

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

CacheEntryChangeMonitors CacheEntryChangeMonitors CacheEntryChangeMonitors CacheEntryChangeMonitors 4

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

CacheEntryRemovedCallback CacheEntryRemovedCallback CacheEntryRemovedCallback CacheEntryRemovedCallback 64

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

CacheEntryUpdateCallback CacheEntryUpdateCallback CacheEntryUpdateCallback CacheEntryUpdateCallback 32

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 CacheRegions CacheRegions CacheRegions 128

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 InMemoryProvider InMemoryProvider InMemoryProvider 1

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 None None None 0

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

OutOfProcessProvider OutOfProcessProvider OutOfProcessProvider OutOfProcessProvider 2

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 SlidingExpirations SlidingExpirations SlidingExpirations 16

A cache implementation supports the ability to automatically remove cache entries that have not been accessed in a specified time span.

Remarks

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.

Applies to