Note
Changing value of this property will not reorganize cache, just switches between the maintaining strategies.
Cache order is maintained on accessing a value.
public CacheBehavior Behavior { get; set; }
Public Property Behavior As CacheBehavior
Get
Set
public:
virtual property CacheBehavior Behavior {
CacheBehavior get () sealed;
void set (CacheBehavior value) sealed;
}
abstract Behavior : CacheBehavior with get, set
override Behavior : CacheBehavior with get, set
When cache is full (that is, when Count reaches Capacity) and a new element has to be stored, then an element has to be dropped out from the cache. The dropping-out strategy is specified by this property. The suggested behavior depends on cache usage. See possible behaviors at CacheBehavior enumeration.