Add array of CacheItem to the cache.

Namespace: Alachisoft.NCache.Web.Caching
Assembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.3.0.0 (4.3.0.0)

Syntax

C#
public virtual IDictionary AddBulk(
	string[] keys,
	CacheItem[] items,
	DSWriteOption dsWriteOption,
	string providerName,
	DataSourceItemsAddedCallback onDataSourceItemsAdded
)
Visual Basic
Public Overridable Function AddBulk ( 
	keys As String(),
	items As CacheItem(),
	dsWriteOption As DSWriteOption,
	providerName As String,
	onDataSourceItemsAdded As DataSourceItemsAddedCallback
) As IDictionary
Visual C++
public:
virtual IDictionary^ AddBulk(
	array<String^>^ keys, 
	array<CacheItem^>^ items, 
	DSWriteOption dsWriteOption, 
	String^ providerName, 
	DataSourceItemsAddedCallback^ onDataSourceItemsAdded
)

Parameters

keys
Type: array<System..::..String>[]()[][]
The cache keys used to reference the items.
items
Type: array<Alachisoft.NCache.Web.Caching..::..CacheItem>[]()[][]
The items that are to be stored
dsWriteOption
Type: Alachisoft.NCache.Web.Caching..::..DSWriteOption
Options regarding updating data source
providerName
Type: System..::..String
A unique identifier for the data source
onDataSourceItemsAdded
Type: Alachisoft.NCache.Web.Caching..::..DataSourceItemsAddedCallback
A delegate that, if provided, is called when item is added to data source

Return Value

Type: IDictionary
keys that are added or that alredy exists in the cache and their status.

See Also