src/main/java/org/nutz/ssdb4j/SSDBs.java
public static final SSDB replication(String masterHost, int masterPort, String slaveHost, int slavePort, int timeout, Object config, byte[] masterAuth, byte[] slaveAuth) {
        PoolSSDBStream master = _pool(masterHost, masterPort, timeout, config, masterAuth);
        PoolSSDBStream slave = _pool(slaveHost, slavePort, timeout, config, slaveAuth);
        return new SimpleClient(new ReplicationSSDMStream(master, slave));
    }
public static final SSDB replication(String masterHost, int masterPort, String slaveHost, int slavePort, int timeout, Object config, byte[] masterAuth, byte[] slaveAuth) {
        PoolSSDBStream master = _pool(masterHost, masterPort, timeout, config, masterAuth);
        PoolSSDBStream slave = _pool(slaveHost, slavePort, timeout, config, slaveAuth);
        return new SimpleClient(new ReplicationSSDMStream(master, slave));
    }
按指定配置生成master/slave且使用连接池的客户端
@param masterHost 主服务器的主机名
@param masterPort 主服务器的端口
@param slaveHost  从服务器的主机名
@param slavePort  从服务器的端口
@param timeout    超时设置
@param config     连接池配置信息,如果为空,则使用默认值
@param masterAuth 主服务器的鉴权信息
@param slaveAuth  副服务器的鉴权信息