Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Gets a CacheItem object to retrieve all information associated with your cached object.
Namespace: System.Data.Caching
Assembly: ClientLibrary (in clientlibrary.dll)
Syntax
'Declaration
Public Function GetCacheItem ( _
key As String _
) As CacheItem
'Usage
Dim instance As Cache
Dim key As String
Dim returnValue As CacheItem
returnValue = instance.GetCacheItem(key)
public CacheItem GetCacheItem (
string key
)
public:
CacheItem^ GetCacheItem (
String^ key
)
public CacheItem GetCacheItem (
String key
)
public function GetCacheItem (
key : String
) : CacheItem
Parameters
- key
A unique value that is used to identify the object in the cache.
Return Value
A CacheItem object that contains all information associated with your cached object. Null is returned if the key does not exist.
Remarks
A CacheItem 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).