DataCache.GetCacheItem Method (String, String)
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Gets a DataCacheItem object to retrieve all information associated with your cached object in the cluster. For objects stored in regions.
Namespace: Microsoft.Data.Caching
Assembly: ClientLibrary (in clientlibrary.dll)
Syntax
'Declaration
Public Function GetCacheItem ( _
key As String, _
region As String _
) As DataCacheItem
'Usage
Dim instance As DataCache
Dim key As String
Dim region As String
Dim returnValue As DataCacheItem
returnValue = instance.GetCacheItem(key, region)
public DataCacheItem GetCacheItem (
string key,
string region
)
public:
DataCacheItem^ GetCacheItem (
String^ key,
String^ region
)
public DataCacheItem GetCacheItem (
String key,
String region
)
public function GetCacheItem (
key : String,
region : String
) : DataCacheItem
Parameters
- key
The unique value that is used to identify the object in the region.
- region
The name of the region where the object resides.
Return Value
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. For more information about tag-based operations, see Tag-Based Methods (Velocity). For more information about concurrency, see Concurrency Models (Velocity) and Concurrency Methods (Velocity).
See Also
Reference
DataCache Class
DataCache Members
Microsoft.Data.Caching Namespace