NET Caching Library Help
GetCacheItem<T> Method (BaseCacheProvider)




KellermanSoftware.NetCachingLibrary.CacheProviders Namespace > BaseCacheProvider Class : GetCacheItem<T> Method
A unique identifier for the cache entry to get.
Optional. A named region in the cache to which the cache was added. The default value for the optional parameter is Default
Gets the specified cache entry from the cache as a System.Runtime.Caching.CacheItem instance.
Syntax
'Declaration
 
Public Function GetCacheItem(Of T)( _
   ByVal key As System.String, _
   Optional ByVal regionName As System.String _
) As System.Runtime.Caching.CacheItem
'Usage
 
Dim instance As BaseCacheProvider
Dim key As System.String
Dim regionName As System.String
Dim value As System.Runtime.Caching.CacheItem
 
value = instance.GetCacheItem(Of T)(key, regionName)
public System.Runtime.Caching.CacheItem GetCacheItem<T>( 
   System.string key,
   System.string regionName
)
public: System.Runtime.Caching.CacheItem* GetCacheItem<T>( 
   System.string* key,
   System.string* regionName
) 
public:
System.Runtime.Caching.CacheItem^ GetCacheItemgeneric<typename T>
( 
   System.String^ key,
   System.String^ regionName
) 

Parameters

key
A unique identifier for the cache entry to get.
regionName
Optional. A named region in the cache to which the cache was added. The default value for the optional parameter is Default

Type Parameters

T

Return Value

The cache entry that is identified by key.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

BaseCacheProvider Class
BaseCacheProvider Members