示例#1
0
 public function setUp()
 {
     $this->redis = new CallbackRedis([$this, 'callbacker']);
     $this->realRedis = new PhpIRedisClient('someCircle');
     $this->assertTrue($this->realRedis->connect($this->getHost(), $this->getPort()), 'could not connect to redis');
     $this->assertTrue($this->realRedis->select(2), 'could not select database 2');
 }