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)
Syntax
public static DataCacheItem GetCacheItem(
DataCacheItemKey key,
string cacheName,
object value,
IEnumerable<DataCacheTag> tags
)
public:
static DataCacheItem^ GetCacheItem(
DataCacheItemKey^ key,
String^ cacheName,
Object^ value,
IEnumerable<DataCacheTag^>^ tags
)
static member GetCacheItem :
key:DataCacheItemKey *
cacheName:string *
value:Object *
tags:IEnumerable<DataCacheTag> -> DataCacheItem
Public Shared Function GetCacheItem (
key As DataCacheItemKey,
cacheName As String,
value As Object,
tags As IEnumerable(Of DataCacheTag)
) As DataCacheItem
Parameters
key
Type: Microsoft.ApplicationServer.Caching.DataCacheItemKeyThe DataCacheItemKey that is passed to the read-through or write-behind provider methods.
cacheName
Type: System.StringThe name of the cache that is associated with this item.
value
Type: System.ObjectThe value of the cache item.
tags
Type: System.Collections.Generic.IEnumerable<DataCacheTag>A collection of tags associated with this item.
Return Value
Type: Microsoft.ApplicationServer.Caching.DataCacheItem
Returns DataCacheItem.
Remarks
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.
See Also
DataCacheItemFactory Class
Microsoft.ApplicationServer.Caching Namespace
Return to top