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 abstract IDictionary<string, object> GetValues( IEnumerable<string> keys, string regionName = null )
A collection of unique identifiers for the cache entries to get.
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 null.
Themethod 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.
Available since 4.0