DataCache.GetCacheItem Method (String, String)
Gets a DataCacheItem object to retrieve all information associated with your cached object in the cluster. For objects stored in regions. This overload is not supported in Windows Azure Shared Caching.
Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)
Syntax
public DataCacheItem GetCacheItem(
string key,
string region
)
public:
DataCacheItem^ GetCacheItem(
String^ key,
String^ region
)
member GetCacheItem :
key:string *
region:string -> DataCacheItem
Public Function GetCacheItem (
key As String,
region As String
) As DataCacheItem
Parameters
key
Type: System.StringThe unique value that is used to identify the object in the region.
region
Type: System.StringThe name of the region where the object resides.
Return Value
Type: Microsoft.ApplicationServer.Caching.DataCacheItem
A DataCacheItem object that contains all information associated with your cached object. Null is returned if the key does not exist.
Remarks
A DataCacheItem object is useful for tag-based and concurrency operations because, together with other information, it includes the associated tags and current version information corresponding to your cached object.
See Also
GetCacheItem Overload
DataCache Class
Microsoft.ApplicationServer.Caching Namespace
Return to top