ObjectCache::GetCacheItem Method
When overridden in a derived class, gets the specified cache entry from the cache as a CacheItem instance.
Assembly: System.Runtime.Caching (in System.Runtime.Caching.dll)
Parameters
- key
- Type: System::String
A unique identifier for the cache entry to get.
- regionName
- Type: System::String
Optional. A named region in the cache to which the cache was added, if regions are implemented. Because regions are not implemented in .NET Framework 4, the default is nullptr.
This method overload exists because some cache implementations might extend the CacheItem class. In that case, the Get(String, String) method overload will not necessarily return all the information about cached data. However, the GetCacheItem(String, String) method overload enables custom caches to return more than just the cache value.
The GetCacheItem(String, String) method is like the Get(String, String) method, except that the GetCacheItem(String, String) method returns return the cache entry as a CacheItem instance.
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
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.