Exemplo n.º 1
0
 public function lrange($listName, $start = 0, $end = -1)
 {
     $key = new \Rediska_Key_List($listName);
     try {
         $result = $key->getValues($start, $end);
     } catch (\Rediska_Exception $e) {
         throw new \VisitCounter\Exception\RedisException($e->getMessage(), 0, $e);
     }
     return $result;
 }
Exemplo n.º 2
0
 function get_basic_lists($iterations = 1000)
 {
     $result = array();
     for ($j = 0; $j < $this->set_iteration; $j++) {
         $list = new Rediska_Key_List($this->list_variable . $j);
         $result[$j] = $list->getValues();
     }
     return $result;
 }