Пример #1
0
 public function testGetLengthByScore()
 {
     $this->rediska->addToSortedSet('test', 1, 1);
     $this->rediska->addToSortedSet('test', 2, 2);
     $this->rediska->addToSortedSet('test', 3, 3);
     $reply = $this->set->getLengthByScore(2, 3);
     $this->assertEquals(2, $reply);
 }