Insert a CacheItem to the cache asynchoronously

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 void InsertAsync(
	string key,
	CacheItem item,
	string providerName,
	DSWriteOption dsWriteOption,
	DataSourceItemsUpdatedCallback onDataSourceItemUpdatedCallback
)
Visual Basic
Public Overridable Sub InsertAsync ( 
	key As String,
	item As CacheItem,
	providerName As String,
	dsWriteOption As DSWriteOption,
	onDataSourceItemUpdatedCallback As DataSourceItemsUpdatedCallback
)
Visual C++
public:
virtual 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