DataCache Members
The object that is used by cache-enabled applications for storing and retrieving objects from the cache cluster. An instance of this object is referred to as the cache client.
The following tables list the members exposed by the DataCache type.
Public Properties
Name | Description | |
---|---|---|
Item | Allows for the use of array notation to access cached objects. |
Top
Public Methods
(see also Protected Methods)
Name | Description | |
---|---|---|
Add | Overloaded. Adds an object to the cache. | |
AddCacheLevelBulkCallback | Adds a bulk cache notification callback for cache operations occurring on all regions and items. | |
AddCacheLevelCallback | Adds a cache notification callback for cache operations occurring on all regions and items. | |
AddFailureNotificationCallback | Adds a failure notification callback, for notifications indicating that a client has missed one or more cache notifications. | |
AddItemLevelCallback | Overloaded. Adds a cache notification callback for cache operations occurring on a specific item. | |
AddRegionLevelCallback | Adds a cache notification callback for cache operations occurring on one specific region. | |
BulkGet | Returns objects for the specified keys from the specified region of the cache. | |
ClearRegion | Deletes all objects in the specified region. | |
CreateRegion | Creates a region. | |
Equals | Overloaded. (inherited from Object) | |
Get | Overloaded. Gets the object by using the specified key from the cache. | |
GetAndLock | Overloaded. Lock the key if key is present and it is not locked by any clients and returns the object corresponding to the key. | |
GetCacheItem | Overloaded. Gets a DataCacheItem object to retrieve all information associated with your cached object in the cluster. | |
GetHashCode | (inherited from Object) | |
GetIfNewer | Overloaded. Gets an object from the cache, but only if a newer version of the object resides in the cache. | |
GetObjectsByAllTags | Gets an enumerable list of all cached objects in the specified region that have all the same tags in common. | |
GetObjectsByAnyTag | Gets an enumerable list of all cached objects in the specified region that have any of the same tags in common. | |
GetObjectsByTag | Gets an enumerable list of all cached objects in the specified region that have the specified tag. | |
GetObjectsInRegion | Gets an enumerable list of all cached objects in the specified region. | |
GetSystemRegionName | Returns the system region name for the specified key. | |
GetSystemRegions | Used to determine the default regions for the cache. | |
GetType | (inherited from Object) | |
Put | Overloaded. Adds or replaces an object in the cache. | |
PutAndUnlock | Overloaded. Replaces and unlocks an object in the cache. | |
ReferenceEquals | (inherited from Object) | |
Remove | Overloaded. Removes an object from the cache. | |
RemoveCallback | Removes a cache notification callback. | |
RemoveRegion | Deletes a region. All cached objects inside the region are also removed. | |
ResetObjectTimeout | Overloaded. Resets the object timeout value, defining how long objects reside in the cache before expiring. The value specified for the object overrides the default settings for the cache. | |
ToString | (inherited from Object) | |
Unlock | Overloaded. Releases objects locked in the cache. This method supports pessimistic concurrency by making sure that the appropriate DataCacheLockHandle is used for unlocking the object. |
Top
Protected Methods
Name | Description | |
---|---|---|
Finalize | (inherited from Object) | |
MemberwiseClone | (inherited from Object) |
Top
See Also
Reference
DataCache Class
Microsoft.ApplicationServer.Caching Namespace
ff425062(v=azure.10).md 2011-08-26