DataCache Members

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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 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 ClearRegion Deletes all objects in the specified region.
Public method CreateRegion Creates a region and specifies if resident objects may be evicted.
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. Returns and locks the cached object (if present).
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 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 method Dd631145.static(en-us,SQL.100).gif 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.Data.Caching Namespace