SRedis::getConfig PHP Method

getConfig() static public method

static public getConfig ( string $zone = null, $type = "host" ) : array
$zone string
return array
    static function getConfig($zone = null, $type = "host")
    {
        $config = SConfig::getConfig(self::$_config, $zone);
        if (isset($config->{$type})) {
            return $config->{$type};
        } elseif (isset($config->host)) {
            return $config->host;
        }
        return;
    }