ObjectCache::GetValues Method (IEnumerable<String>, String)
When overridden in a derived class, gets a set of cache entries that correspond to the specified keys.
Assembly: System.Runtime.Caching (in System.Runtime.Caching.dll)
public: virtual IDictionary<String^, Object^>^ GetValues( IEnumerable<String^>^ keys, String^ regionName ) abstract
Parameters
- keys
- Type: System.Collections.Generic::IEnumerable<String>
A collection of unique identifiers for the cache entries to get.
- regionName
- Type: System::String
Optional. A named region in the cache to which the cache entry or entries were added, if regions are implemented. The default value for the optional parameter is nullptr.
Return Value
Type: System.Collections.Generic::IDictionary<String, Object>A dictionary of key/value pairs that represent cache entries.
The GetValues(IEnumerable<String>, String) method overload is a performance optimization for distributed caches that support fetching multiple cache entries from the cache during a single network call.
Although a caller can pass one or more keys to the method, there is no guarantee that all keys represent entries in the cache. Therefore, the returned dictionary might contain fewer items than the number of keys that were passed to the method.
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.