DataCacheItemFactory.GetCacheItem Method (DataCacheItemKey, String, Object, IEnumerable(Of DataCacheTag))
Creates a DataCacheItem object using the specified parameters.
Assembly: Microsoft.ApplicationServer.Caching.Core (in Microsoft.ApplicationServer.Caching.Core.dll)
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.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(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 .3684b772-b8da-4c16-a9bc-fb037d30c280
Applies only to Microsoft AppFabric 1.1 for Windows Server.
Show: