DataCacheItemVersion Class

 

Used to represent the version of a cached object.

Namespace:   Microsoft.ApplicationServer.Caching
Assembly:  Microsoft.ApplicationServer.Caching.Core (in Microsoft.ApplicationServer.Caching.Core.dll)

Inheritance Hierarchy

System.Object
  Microsoft.ApplicationServer.Caching.DataCacheItemVersion

Syntax

public class DataCacheItemVersion : IComparable<DataCacheItemVersion>
public ref class DataCacheItemVersion : IComparable<DataCacheItemVersion^>
type DataCacheItemVersion = 
    class
        interface IComparable<DataCacheItemVersion>
    end
Public Class DataCacheItemVersion
    Implements IComparable(Of DataCacheItemVersion)

Methods

Name Description
System_CAPS_pubmethod CompareTo(DataCacheItemVersion)

Used to compare two versions of the same item, specified with the same key.

System_CAPS_pubmethod Equals(Object)

Used to determine whether another object is the same.(Overrides Object.Equals(Object).)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

Returns the hash code of the DataCacheItemVersion object.(Overrides Object.GetHashCode().)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_static IsEmpty(DataCacheItemVersion)

This API supports the product infrastructure and is not intended to be used directly from your code. Indicates whether the DataCacheItemVersion object points to a null version. This is intended for internal use only.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Operators

Name Description
System_CAPS_puboperatorSystem_CAPS_static Equality(DataCacheItemVersion, DataCacheItemVersion)

Indicates whether the two DataCacheItemVersion objects are equal.

System_CAPS_puboperatorSystem_CAPS_static GreaterThan(DataCacheItemVersion, DataCacheItemVersion)

Indicates whether the first object is greater than the second object.

System_CAPS_puboperatorSystem_CAPS_static Inequality(DataCacheItemVersion, DataCacheItemVersion)

Indicates whether the two DataCacheItemVersion objects are unequal.

System_CAPS_puboperatorSystem_CAPS_static LessThan(DataCacheItemVersion, DataCacheItemVersion)

Indicates whether the value of the first object is less than the second object.

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.

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.

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

Microsoft.ApplicationServer.Caching Namespace

Return to top