Basho\Riak::getConfigValue PHP Method

getConfigValue() public method

Get value from connection config
public getConfigValue ( $key ) : mixed
$key
return mixed
    public function getConfigValue($key)
    {
        return $this->config[$key];
    }

Usage Example

示例#1
0
 /**
  * @dataProvider getCluster
  *
  * @param $nodes array
  */
 public function testConfig($nodes)
 {
     $riak = new Riak($nodes, ['max_connect_attempts' => 5]);
     $this->assertEquals(5, $riak->getConfigValue('max_connect_attempts'));
 }