Class CacheItemVersion
Represents the version of each cahce item. An instance of this class is used in the optimistic concurrency model to ensure the data integrity.
Inheritance
System.Object
CacheItemVersion
Namespace:
Assembly: Alachisoft.NCache.Web.dll
Syntax
public class CacheItemVersion : IComparable
Version
Gets and sets the version.
Declaration
[CLSCompliant(false)]
public ulong Version { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
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)
Tells 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
System.Object.Equals(System.Object)
ToString()
The string representation of this class.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()