The CacheItem type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CacheItem | Costructor |
Methods
Name | Description | |
---|---|---|
Clone |
Creates a shallow copy of CacheItem
| |
Equals | (Inherited from Object.) | |
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.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
AbsoluteExpiration | The time at which the added object expires
and is removed from the cache.
| |
AsyncItemAddCallback | A delegate that, if provided, is called when an Asynchronous request
for Add Operation completes. You can use this to obtain the results of an 'AddAsync' operation. | |
AsyncItemUpdateCallback | A delegate that, if provided, is called when an Asynchronous request
for Update Operation completes. You can use this to obtain the results of an 'InsertAsync' operation. | |
CreationTime |
Get the cache item creation time
| |
Dependency | The file or cache key dependencies for the item.
When any dependency changes, the object becomes invalid and is removed from
the cache. If there are no dependencies, this property contains a null
reference (Nothing in Visual Basic). | |
Group |
The name of the group to associate with the cache item. All cache items with the same
group name are logically grouped together.
| |
IsResyncExpiredItems |
Gets/Sets a value indicating whether the object when expired will cause a refetch of
the object from the master datasource. (Resync Expired Items)
| |
ItemRemoveCallback | A delegate that, if provided, is called when an object is removed
from the cache. You can use this to notify applications when their
objects are deleted from the cache. | |
ItemUpdateCallback | A delegate that, if provided, is called when an object is updated
in the cache. You can use this to notify applications when their
objects are updated in the cache. | |
LastModifiedTime |
Get the cache item last modified time
| |
NamedTags |
Get or set the named tags
| |
Priority | The relative cost of the object, as expressed by the enumeration.
The cache uses this value when it evicts objects; objects with a lower cost
are removed from the cache before objects with a higher cost. | |
ResyncProviderName | Gets/Sets Provider name for re-synchronization of cache | |
SlidingExpiration | The interval between the time the added object was last
accessed and when that object expires. If this value is the equivalent of
20 minutes, the object expires and is removed from the cache 20 minutes
after it is last accessed. | |
SubGroup |
The name of the sub-group within a group. This hierarchical grouping gives more control
over the cache items.
| |
SyncDependency |
CacheSyncDependency for this item.
| |
Tags |
Get or set the tags
| |
Value | The actual object provided by the client application. | |
Version |
Get or Set the cache item version
|