CacheItemVersion

CacheItemVersion

# new CacheItemVersion(version)

Parameters:
Name Type Default Description
version Number 0

Item's version

Methods

# compareTo(itemVersion)

Compare CacheItemVersion with current instance of item version

Parameters:
Name Type Description
itemVersion CacheItemVersion

item version to be compared

Returns:

0 if two instance are equal. An integer greater then 0 if this instance is greater. An integer less than 0 if this instance is smaller

# getVersion() → {number}

Get item version

Returns:

Item's version

Type
number

# setVersion(version)

Set item version

Parameters:
Name Type Description
version number

Item's version

# toString()

The string representation of this class.

Returns:

a string representation of the object.