Продажи: 1-800-867-1389
EN
Данное содержимое не доступно на вашем языке, используйте версию на английском языке.

BulkGet Method (IEnumerable(String))

Gets all of the objects associated with the specified keys across all system regions. This method does not search user-defined regions.

Namespace:  Microsoft.ApplicationServer.Caching
Assembly:  Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)

'Декларация
Public Function BulkGet ( _
	keys As IEnumerable(Of String) _
) As IEnumerable(Of KeyValuePair(Of String, Object))
'Применение
Dim instance As DataCache
Dim keys As IEnumerable(Of String)
Dim returnValue As IEnumerable(Of KeyValuePair(Of String, Object))

returnValue = instance.BulkGet(keys)

Parameters

keys
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'String>)>)>
List of keys for the objects to retrieve, cannot be null.

Return Value

Type: System.Collections.Generic..::..IEnumerable<(Of <(<'KeyValuePair<(Of <(<'String, Object>)>)>>)>)>
Returns an IEnumerable<(Of <(<'T>)>)> object with a list of key and value pairs.

Parameter validation behavior:

  • If a key is not present in the region, the object returned by the enumerator for the key will be null. For example, the key/value pair returned would be <key,null>.

Performance considerations - BulkGet improves performance when used with small objects, for example, when retrieving many objects of 1 - 5KB or less in size. When using BulkGet to retrieve large objects, for example objects larger than 64 KB, BulkGet will not significantly improve performance and in fact may adversely impact performance. This reduced performance can occur because large bulk get responses are split into multiple single object responses to avoid large object heap usage.

Была ли вам полезна эта информация?
(1500 символов осталось)
Спасибо за ваш отзыв
Показ:
© 2014 Microsoft