Language

Cache Members

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

The primary 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 Cache type.

Public Properties

  Name Description
Public property Static DefaultCache The name of the default cache.
Public property Static DefaultRegion Used instead of a region parameter to indicate that a region should not be used in the method.
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 a new object to the cache. An exception is thrown if the item is already located in the cache.
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 GetAllEnumerator Gets an enumerator for all cached objects in the specified region that have all the same tags in common.
Public method GetAllMatchingTags Gets a list of all cached objects in the specified region that have all the same tags in common.
Public method GetAndLock Overloaded.  
Public method GetAnyEnumerator Gets an enumerator of all cached objects in the specified region that have any of the same tags in common.
Public method GetAnyMatchingTag Gets a list of all cached objects in the specified region that have any of the same tags in common.
Public method GetByTag Gets a list of all cached objects in the specified region that have the specified tag.
Public method GetCacheItem Overloaded. Gets a CacheItem object to retrieve all information associated with your cached object in the cluster.
Public method GetEnumerator Overloaded. Gets an enumerator of cached objects residing in the specified region.
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 occurs in the cache.
Public method GetType  (Inherited from Object.)
Public method Put Overloaded. Adds a new object to the cache or replaces one if it is already located in the cache.
Public method PutAndUnlock Overloaded.  
Public method Static ReferenceEquals  (Inherited from Object.)
Public method Remove Overloaded. Removes a cached object from the cache.
Public method RemoveRegion Deletes a region. All cached objects inside the region are also removed.
Public method ResetObjectTimeout Overloaded.  
Public method ToString  (Inherited from Object.)
Public method Unlock Overloaded.  

Top

Protected Methods

  Name Description
Protected method Finalize  (Inherited from Object.)
Protected method MemberwiseClone  (Inherited from Object.)

Top

See Also

Reference

Cache Class
System.Data.Caching Namespace