Class CacheItemVersion
Represents the version of each cache item. An instance of this class is used in the optimistic concurrency model to ensure the data integrity.
Inheritance
Assembly: Alachisoft.NCache.Client.dll
Syntax
public class CacheItemVersion : IComparable
Properties
Version
Gets/Sets the version.
Declaration
[CLSCompliant(false)]
public ulong Version { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 | Gets/Sets the version. |
Methods
CompareTo(Object)
Compares an object with this instance of CacheItemVersion.
Declaration
public int CompareTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | An object to compare with this instance of CacheItemVersion. |
Returns
Type | Description |
---|---|
System.Int32 | 0 if two instances are equal. An integer greater than 0, if this instance is greater. An integer less than 0, if this instance is smaller. |
Equals(Object)
Identifies if two instances of this class are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | An object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Boolean | True if two instances of this class are equal. |
Overrides
ToString()
The string representation of this class.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The string representation of this class. |