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
public property Item Allows for the use of array notation to access cached objects.

Top

Public Methods

(see also Protected Methods)

  Name Description
public method Add Overloaded. Adds an object to the cache.
public method AddCacheLevelBulkCallback Adds a bulk cache notification callback for cache operations occurring on all regions and items.
public method AddCacheLevelCallback Adds a cache notification callback for cache operations occurring on all regions and items.
public method AddFailureNotificationCallback Adds a failure notification callback, for notifications indicating that a client has missed one or more cache notifications.
public method AddItemLevelCallback Overloaded. Adds a cache notification callback for cache operations occurring on a specific item.
public method AddRegionLevelCallback Adds a cache notification callback for cache operations occurring on one specific region.
public method BulkGet Returns objects for the specified keys from the specified region of the cache.
public method ClearRegion Deletes all objects in the specified region.
public method CreateRegion Creates a region.
public method Equals  Overloaded. (inherited from Object)
public method Get Overloaded. Gets the object by using the specified key from the cache.
public method 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.
public method GetCacheItem Overloaded. Gets a DataCacheItem object to retrieve all information associated with your cached object in the cluster.
public method GetHashCode  (inherited from Object)
public method GetIfNewer Overloaded. Gets an object from the cache, but only if a newer version of the object resides in the cache.
public method GetObjectsByAllTags Gets an enumerable list of all cached objects in the specified region that have all the same tags in common.
public method GetObjectsByAnyTag Gets an enumerable list of all cached objects in the specified region that have any of the same tags in common.
public method GetObjectsByTag Gets an enumerable list of all cached objects in the specified region that have the specified tag.
public method GetObjectsInRegion Gets an enumerable list of all cached objects in the specified region.
public method GetSystemRegionName Returns the system region name for the specified key.
public method GetSystemRegions Used to determine the default regions for the cache.
public method GetType  (inherited from Object)
public method Put Overloaded. Adds or replaces an object in the cache.
public method PutAndUnlock Overloaded. Replaces and unlocks an object in the cache.
public methodstatic ReferenceEquals  (inherited from Object)
public method Remove Overloaded. Removes an object from the cache.
public method RemoveCallback Removes a cache notification callback.
public method RemoveRegion Deletes a region. All cached objects inside the region are also removed.
public method 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.
public method ToString  (inherited from Object)
public method 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
protected method Finalize  (inherited from Object)
protected method MemberwiseClone  (inherited from Object)

Top

See Also

Reference

DataCache Class
Microsoft.ApplicationServer.Caching Namespace

  ff425062(v=azure.10).md 2011-08-26