CacheConnection

CacheConnection

instance of this class can be used to define the parameters to establish connection with cache.


Constructor

# new CacheConnection(server, port)

Initializes new instance of CacheConnection.

Parameters:
Name Type Default Description
server String

Specifies the name of server on which cache is running.

port Number 8250

Specifies the port of server on which cache is running.

Methods

# getPort() → {Number}

Get port of server on which cache is running.

Returns:
Type
Number

# getServer() → {String}

Get name of server on which cache is running.

Returns:

Name of server on which cache is running.

Type
String

# getUserCredentials() → {Credentials}

Get Credentials of the cache for authorization.

Returns:

Get Credentials of the cache for authorization.

Type
Credentials

# setUserCredentials(credentials)

Set Credentials of the cache for authorization.

Parameters:
Name Type Description
credentials Credentials

credentials used for authorization.