Esempio n. 1
0
 public function testGetByScore()
 {
     $this->rediska->addToSortedSet('test', 123, 1);
     $this->rediska->addToSortedSet('test', 456, 2);
     $values = $this->set->getByScore(0, 3);
     $this->assertEquals(123, $values[0]);
     $this->assertEquals(456, $values[1]);
 }