public static function init(array $rd_confs)
    {
        // create redis init params
        $cluster = $rd_confs['cluster'];
        $options = (array) $rd_confs['options'];
        $servers = $rd_confs['rd_con'];
        // get clients
        self::$_clients = $cluster ?
            self::createAggregateClient($servers, $options) :
            self::createSingleClients($servers, $options);
        // check redis connect
        foreach (self::$_clients as $con_name => $client) {
            try {
                $client->connect();

            } catch (\Exception $e) {
                $msg = "Redis connect fail, check your redis config for connection '$con_name'. \n".$e->getMessage();
                throw new ConnectException($msg);
            }
        }
    }
public static function init(array $rd_confs)
    {
        // create redis init params
        $cluster = $rd_confs['cluster'];
        $options = (array) $rd_confs['options'];
        $servers = $rd_confs['rd_con'];
        // get clients
        self::$_clients = $cluster ?
            self::createAggregateClient($servers, $options) :
            self::createSingleClients($servers, $options);
        // check redis connect
        foreach (self::$_clients as $con_name => $client) {
            try {
                $client->connect();

            } catch (\Exception $e) {
                $msg = "Redis connect fail, check your redis config for connection '$con_name'. \n".$e->getMessage();
                throw new ConnectException($msg);
            }
        }
    }
public static function init ( array $ rd_confs ) { // create redis init params $ cluster = $ rd_confs [ 'cluster' ] ; $ options = ( array ) $ rd_confs [ 'options' ] ; $ servers = $ rd_confs [ 'rd_con' ] ; // get clients self :: $ _clients = $ cluster ? self :: createAggregateClient ( $ servers , $ options ) : self :: createSingleClients ( $ servers , $ options ) ; // check redis connect foreach ( self :: $ _clients as $ con_name => $ client ) { try { $ client -> connect ( ) ; } catch ( \ Exception $ e ) { $ msg = "Redis connect fail, check your redis config for connection '$con_name'. \n" . $ e -> getMessage ( ) ; throw new ConnectException ( $ msg ) ; } } }
init redis clients.

@param  array $rd_confs
@return void
@throws WorkerF\DB\ConnectException
init redis clients .