Jaa


CacheItemPolicy Members

Include Protected Members
Include Inherited Members

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.

The CacheItemPolicy type exposes the following members.

Constructors

  Name Description
Public method CacheItemPolicy
Initializes a new instance of the CacheItemPolicy class.

Methods

  Name Description
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Extension Methods

  Name Description
Public Extension Method IsExpired
Determines whether an entry is expired.
(Defined by CacheItemPolicyExtensions.)
Public Extension Method Validate
Validates the specified policy.
(Defined by CacheItemPolicyExtensions.)

Properties

  Name Description
Public property AbsoluteExpiration
Gets or sets a value that indicates whether a cache entry should be evicted after a specified duration.
Public property Priority
Gets or sets a priority setting that is used to determine whether to evict a cache entry.
Public property RemovedCallback
Gets or sets a reference to a CacheEntryRemovedCallback delegate that is called after an entry is removed from the cache.
Public property SlidingExpiration
Gets or sets a value that indicates whether a cache entry should be evicted if it has not been accessed in a given span of time.
Public property UpdateCallback
Gets or sets a reference to a CacheEntryUpdateCallback delegate that is called before a cache entry is removed from the cache.

See Also

CacheItemPolicy Class

Microsoft.Practices.EnterpriseLibrary.Caching.Runtime.Caching Namespace