Methods
findOwners(k) → {Array.<ServerAddress>}
Find the list of server addresses that are owners for a given key.
Parameters:
Name | Type | Description |
---|---|---|
k |
String | Key to find owners for. |
- Since:
- 0.3
- Source:
Returns:
An array of server addresses that are owners for the given key.
- Type
- Array.<ServerAddress>
getMembers() → {Array.<ServerAddress>}
Get the list of servers that the client is currently connected to.
- Since:
- 0.3
- Source:
Returns:
An array of server addresses.
- Type
- Array.<ServerAddress>
getTopologyId() → {Number}
Get the server topology identifier.
- Since:
- 0.3
- Source:
Returns:
Topology identifier.
- Type
- Number
switchToCluster(clusterName) → {module:promise.Promise.<Boolean>}
Switch remote cache manager to a different cluster,
previously declared via configuration.
Parameters:
Name | Type | Description |
---|---|---|
clusterName |
name of the cluster to which to switch to |
- Since:
- 0.4
- Source:
Returns:
A promise encapsulating a Boolean that indicates {@code true} if the
switch happened, or {@code false} otherwise.
- Type
- module:promise.Promise.<Boolean>
switchToDefaultCluster() → {module:promise.Promise.<Boolean>}
Switch remote cache manager to the default cluster,
previously declared via configuration.
- Since:
- 0.4
- Source:
Returns:
A promise encapsulating a Boolean that indicates {@code true} if the
switch happened, or {@code false} otherwise.
- Type
- module:promise.Promise.<Boolean>