protected function setUp() { parent::setUp(); $config = $GLOBALS['rediskaConfigs'][0]; if (isset($config['namespace'])) { unset($config['namespace']); } $this->cache = Zend_Cache::factory('Core', 'Rediska_Zend_Cache_Backend_Redis', array('cache_id_prefix' => $this->rediska->getOption('namespace')), $config, false, true); }
protected function setUp() { parent::setUp(); $this->rediska->set('user_ids:test', 1); $data = new stdClass(); $data->login = '******'; $data->password = '******'; $this->rediska->set('users:1', $data); $this->auth = Zend_Auth::getInstance(); $this->adapter = new Rediska_Zend_Auth_Adapter_Redis(); }
protected function setUp() { parent::setUp(); $this->key = new Rediska_Key('test'); }
protected function setUp() { parent::setUp(); $this->list = new Rediska_Key_List('test'); }
protected function setUp() { parent::setUp(); $writer = new Rediska_Zend_Log_Writer_Redis('log'); $this->log = new Zend_Log($writer); }
protected function setUp() { parent::setUp(); $backendOptions = array('storage' => array('set_ids' => 'zc-test:ids', 'set_tags' => 'zc-test:tags', 'prefix_key' => 'zc-test:k:', 'prefix_tag_ids' => 'zc-test:ti:')); $this->cache = Zend_Cache::factory('Core', 'Rediska_Zend_Cache_Backend_Redis', array(), $backendOptions, false, true, true); }
protected function setUp() { parent::setUp(); $this->queue = new Zend_Queue('Redis', array('adapterNamespace' => 'Rediska_Zend_Queue_Adapter')); }
public function setUp() { parent::setUp(); list($connection) = $this->rediska->getConnections(); $this->config = $this->rediska->config($connection); }
public function tearDown() { parent::tearDown(); $this->transaction->discard(); }
protected function setUp() { parent::setUp(); $this->saveHandler = new Rediska_Zend_Session_SaveHandler_Redis(array('keyPrefix' => 's_')); }
protected function setUp() { parent::setUp(); $this->cache = Zend_Cache::factory('Core', 'Rediska_Zend_Cache_Backend_Redis', array(), array(), false, true, true); }
protected function setUp() { parent::setUp(); $this->set = new Rediska_Key_SortedSet('test'); }
protected function setUp() { parent::setUp(); $this->hash = new Rediska_Key_Hash('test'); }