Exemplo n.º 1
0
 /**
  * Writer constructor
  * 
  * @param string            $keyName Log key name
  * @param Zend_Config|array $options Rediska options
  */
 public function __construct($keyName, $options = array())
 {
     if ($options instanceof Zend_Config) {
         $options = $options->toArray();
     }
     $defaultInstance = Rediska::getDefaultInstance();
     if (empty($options) && $defaultInstance) {
         $rediska = $defaultInstance;
     } else {
         $rediska = new Rediska($options);
     }
     $this->_list = new Rediska_Key_List($keyName);
     $this->_list->setRediska($rediska);
 }
Exemplo n.º 2
0
 public function getList($listKey)
 {
     $List = new Rediska_Key_List($listKey);
     $List->setRediska($this->Rediska);
     return $List->toArray();
 }