Exemplo n.º 1
0
 public function testIsInPoolArray()
 {
     $this->redis->zadd('test', [1 => 123, 2 => 456, 3 => 789, 4 => 987]);
     $pool = new Pool($this->redis, 'test');
     $this->assertSame([1 => true, 4 => true], $pool->isInPool([1, 4]));
     $this->assertSame([6 => false, 3 => true, 1 => true, 9 => false], $pool->isInPool([6, 3, 1, 9]));
     $this->assertKeys(['test']);
 }