Insert a CacheItem to the cache asynchoronously

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

Syntax

C#
public void InsertAsync(
	string key,
	CacheItem item,
	string providerName,
	DSWriteOption dsWriteOption,
	DataSourceItemsUpdatedCallback onDataSourceItemUpdatedCallback
)
Visual Basic
Public Sub InsertAsync ( _
	key As String, _
	item As CacheItem, _
	providerName As String, _
	dsWriteOption As DSWriteOption, _
	onDataSourceItemUpdatedCallback As DataSourceItemsUpdatedCallback _
)
Visual C++
public:
void InsertAsync(
	String^ key, 
	CacheItem^ item, 
	String^ providerName, 
	DSWriteOption dsWriteOption, 
	DataSourceItemsUpdatedCallback^ onDataSourceItemUpdatedCallback
)

Parameters

key
Type: System..::..String
The cache key used to reference the item.
item
Type: Alachisoft.NCache.Web.Caching..::..CacheItem
The item that is to be stored
providerName
Type: System..::..String
The datasource name to use for write-through operation.
dsWriteOption
Type: Alachisoft.NCache.Web.Caching..::..DSWriteOption
Options regarding updating data source
onDataSourceItemUpdatedCallback
Type: Alachisoft.NCache.Web.Caching..::..DataSourceItemsUpdatedCallback
A delegate that, if provided, is called when item is updated in data source.

See Also