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 | |
---|---|---|
CompareTo(DataCacheItemVersion) | Used to compare two versions of the same item, specified with the same key. |
|
Equals(Object) | Used to determine whether another object is the same.(Overrides Object.Equals(Object).) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | Returns the hash code of the DataCacheItemVersion object.(Overrides Object.GetHashCode().) |
|
GetType() | (Inherited from Object.) |
|
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. |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
Operators
Name | Description | |
---|---|---|
Equality(DataCacheItemVersion, DataCacheItemVersion) | Indicates whether the two DataCacheItemVersion objects are equal. |
|
GreaterThan(DataCacheItemVersion, DataCacheItemVersion) | Indicates whether the first object is greater than the second object. |
|
Inequality(DataCacheItemVersion, DataCacheItemVersion) | Indicates whether the two DataCacheItemVersion objects are unequal. |
|
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