Exemplo n.º 1
0
 public function testToArray()
 {
     $this->rediska->appendToList('test', 123);
     $this->rediska->appendToList('test', 456);
     $values = $this->list->toArray();
     $this->assertEquals(array(123, 456), $values);
 }
Exemplo n.º 2
0
 public static function getAgentsIndexHost($haddr, $namespace = '')
 {
     $indexKey = empty($namespace) ? "agents-{$haddr}" : "agents-{$haddr}-{$namespace}";
     $agentsIndex = new Rediska_Key_List($indexKey);
     return $agentsIndex->toArray(0, 10000);
 }
Exemplo n.º 3
0
 public function getList($listKey)
 {
     $List = new Rediska_Key_List($listKey);
     $List->setRediska($this->Rediska);
     return $List->toArray();
 }