DataCacheItemFactory.GetCacheItem Method (DataCacheItemKey, String, Object, IEnumerable<DataCacheTag>)

 

Creates a DataCacheItem object using the specified parameters.

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

public static DataCacheItem GetCacheItem(
	DataCacheItemKey key,
	string cacheName,
	object value,
	IEnumerable<DataCacheTag> tags
)

Parameters

key
Type: Microsoft.ApplicationServer.Caching.DataCacheItemKey

The DataCacheItemKey that is passed to the read-through or write-behind provider methods.

cacheName
Type: System.String

The name of the cache that is associated with this item.

value
Type: System.Object

The value of the cache item.

tags
Type: System.Collections.Generic.IEnumerable<DataCacheTag>

A collection of tags associated with this item.

A read-through or write-behind provider implements methods such as Read, Write, and Delete. These methods receive one or more DataCacheItemKey objects to indicate the objects that should be read or written. The cacheName parameter should be set to the name of the cache that was sent to the overloaded constructor of the provider. For more information, see .3684b772-b8da-4c16-a9bc-fb037d30c280

Applies only to Microsoft AppFabric 1.1 for Windows Server.

Return to top
Show: