Jarves\Cache\Backend\Redis::setup PHP Method

setup() public method

public setup ( $config )
    public function setup($config)
    {
        $this->connection = new \Redis();
        foreach ($config['servers'] as $server) {
            $this->connection->connect($server['ip'], $server['port'] + 0);
        }
        $this->connection->setOption(\Redis::OPT_SERIALIZER, \Redis::SERIALIZER_IGBINARY);
    }