DataCacheItemVersion Class

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Used to represent the version of a cached object.

Namespace: Microsoft.Data.Caching
Assembly: CacheBaseLibrary (in cachebaselibrary.dll)

Syntax

'Declaration
Public Class DataCacheItemVersion
    Implements IComparable(Of DataCacheItemVersion)
'Usage
Dim instance As DataCacheItemVersion
public class DataCacheItemVersion : IComparable<DataCacheItemVersion>
public ref class DataCacheItemVersion : IComparable<DataCacheItemVersion^>
public class DataCacheItemVersion implements IComparable<DataCacheItemVersion>
public class DataCacheItemVersion implements IComparable<DataCacheItemVersion>

Remarks

The DataCacheItemVersion is updated every time that the object is updated. Only the latest version of the object is stored on the cache cluster. Due to the distributed nature of the cluster, the cache client may not have the latest copy of the object. For this reason, the DataCacheItemVersion class is essential for concurrency operations. For more information, see Concurrency Models (Velocity) and Concurrency Methods (Velocity).

When using cache notifications, the DataCacheItemVersion object corresponding to an item-related cache operation can be returned to your application with the version parameter of the DataCacheNotificationCallback delegate method. For more information, see Cache Notifications (Velocity).

Inheritance Hierarchy

System.Object
  Microsoft.Data.Caching.DataCacheItemVersion

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

DataCacheItemVersion Members
Microsoft.Data.Caching Namespace