Tag

Tag

Represents an string based identifier that can be associated with the cache items so that they are logically grouped together and can be retrieved efficiently. One or more tags can be associated with each cache item. To create an instance of Tag class you can use code as follows: Tag tag = new Tag("Alpha");


Constructor

# new Tag(tag)

Initializes a new instance of Tag class.

Parameters:
Name Type Description
tag string

string name of tag

Methods

# equals(tag) → {boolean}

It compares object with the tag and return true if is equal otherwise it will return false

Parameters:
Name Type Description
tag Tag

object must be of type Tag

Returns:

True/False

Type
boolean

# getTagName() → {string}

Gets the string based tag name.

Returns:
Type
string

# setTagName(tag)

Sets the string based tag name.

Parameters:
Name Type Description
tag string

string name of tag to be used

# ToString() → {string}

String representation of the Tag class.

Returns:
Type
string