DataCacheItem.Key Property
The identifier that is used to distinguish the cached object in the cache or region.
Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Core (in Microsoft.ApplicationServer.Caching.Core.dll)
Syntax
public string Key { get; }
public:
property String^ Key {
String^ get();
}
member Key : string with get
Public ReadOnly Property Key As String
Property Value
Type: System.String
A string value that represents the identifier that is used to distinguish the cached object in the cache or region.
Remarks
For objects stored in regions, the Key is only unique relative to other objects in that particular region. For objects not stored in regions, the Key is only unique relative to other objects not stored in regions in the same cache. The same Key can exist more than once in a cache if the additional keys are stored within different regions.
The DataCacheItem class is especially useful for updating tags associated with the object and concurrency operations. Tags are not supported in Windows Azure Shared Caching.
See Also
DataCacheItem Class
Microsoft.ApplicationServer.Caching Namespace
Return to top