Επεξεργασία

Κοινή χρήση μέσω


DefaultCacheCapabilities Enum

Definition

Represents a set of features that a cache implementation provides.

This enumeration supports a bitwise combination of its member values.

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

Fields

Name Value Description
None 0

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

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.

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.

CacheEntryChangeMonitors 4

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

AbsoluteExpirations 8

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

SlidingExpirations 16

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

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.

CacheEntryRemovedCallback 64

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

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.

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