SALES: 1-800-867-1380

GetCacheItem Method

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


Type: Microsoft.ApplicationServer.Caching..::..DataCacheItemKey
The DataCacheItemKey that is passed to the read-through or write-behind provider methods.
Type: System..::..String
The name of the cache that is associated with this item.
Type: System..::..Object
The value of the cache item.
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'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 Extend the DataCacheStoreProvider Class (Windows Server AppFabric v1.1).

Applies only to Microsoft AppFabric 1.1 for Windows Server.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft