k2hdkcpx_open
Creates a connection to chmpx slave
Description
/**
* @return resource|false
*/
function k2hdkcpx_open(
string $config_file,
int $port = 8031,
string $cuk = null,
bool $rejoin = true,
bool $rejoin_forever = true,
bool $clear_backup = true) {}
Creates a connection to chmpx slave.
Parameters
- config_file
Specify a chmpx slave configuration file. - port
Specify the port that chmpx slave process listens. - cuk
Specify thecuk
string that is a unique string for each node in the cluster. - rejoin
Specifytrue
when reconnecting with chmpx slave process. - rejoin_forever
Specifytrue
when reconnecting with chmpx slave process infinitely. - clear_backup
Specifytrue
when removing the temporary files
Return Values
Returns the chmpx handle on success or false
on failure.
See Also
- K2hdkc::__construct - Creates a K2hdkc instance