Swoole Coroutine Redis

Swoole\Coroutine\Redis

Coroutine Redis client.

Swoole\Coroutine\Channel->__construct(int $capacity = 1)

Hiredis library is required:

sudo make
sudo make install
sudo ldconfig

Example:

<?php
$redis = new Swoole\Coroutine\Redis();
$redis->connect('127.0.0.1', 6379);
$val = $redis->get('key');

The methods are same as Redis client.