This function tries to do an Add asynchronously in remote cache, if successful the operation is then done to client 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#
protected internal override void AddAsyncOperation(
	string key,
	Object value,
	CacheDependency dependency,
	CacheSyncDependency syncDependency,
	DateTime absoluteExpiration,
	TimeSpan slidingExpiration,
	CacheItemPriority priority,
	DSWriteOption dsWriteOption,
	CacheItemRemovedCallback onRemoveCallback,
	CacheItemUpdatedCallback onUpdateCallback,
	AsyncItemAddedCallback onAsyncItemAddCallback,
	DataSourceItemsAddedCallback onDataSourceItemAdded,
	bool isResyncExpiredItems,
	string group,
	string subGroup,
	Tag[] tags,
	string providername,
	string resyncProviderName,
	NamedTagsDictionary namedTags,
	CacheDataNotificationCallback cacheItemUdpatedCallback,
	CacheDataNotificationCallback cacheItemRemovedCallaback,
	EventDataFilter itemUpdateDataFilter,
	EventDataFilter itemRemovedDataFilter
)
Visual Basic
Protected Friend Overrides Sub AddAsyncOperation ( 
	key As String,
	value As Object,
	dependency As CacheDependency,
	syncDependency As CacheSyncDependency,
	absoluteExpiration As DateTime,
	slidingExpiration As TimeSpan,
	priority As CacheItemPriority,
	dsWriteOption As DSWriteOption,
	onRemoveCallback As CacheItemRemovedCallback,
	onUpdateCallback As CacheItemUpdatedCallback,
	onAsyncItemAddCallback As AsyncItemAddedCallback,
	onDataSourceItemAdded As DataSourceItemsAddedCallback,
	isResyncExpiredItems As Boolean,
	group As String,
	subGroup As String,
	tags As Tag(),
	providername As String,
	resyncProviderName As String,
	namedTags As NamedTagsDictionary,
	cacheItemUdpatedCallback As CacheDataNotificationCallback,
	cacheItemRemovedCallaback As CacheDataNotificationCallback,
	itemUpdateDataFilter As EventDataFilter,
	itemRemovedDataFilter As EventDataFilter
)
Visual C++
protected public:
virtual void AddAsyncOperation(
	String^ key, 
	Object^ value, 
	CacheDependency^ dependency, 
	CacheSyncDependency^ syncDependency, 
	DateTime absoluteExpiration, 
	TimeSpan slidingExpiration, 
	CacheItemPriority priority, 
	DSWriteOption dsWriteOption, 
	CacheItemRemovedCallback^ onRemoveCallback, 
	CacheItemUpdatedCallback^ onUpdateCallback, 
	AsyncItemAddedCallback^ onAsyncItemAddCallback, 
	DataSourceItemsAddedCallback^ onDataSourceItemAdded, 
	bool isResyncExpiredItems, 
	String^ group, 
	String^ subGroup, 
	array<Tag^>^ tags, 
	String^ providername, 
	String^ resyncProviderName, 
	NamedTagsDictionary^ namedTags, 
	CacheDataNotificationCallback^ cacheItemUdpatedCallback, 
	CacheDataNotificationCallback^ cacheItemRemovedCallaback, 
	EventDataFilter itemUpdateDataFilter, 
	EventDataFilter itemRemovedDataFilter
) override

See Also