Beispiel #1
0
 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);
 }
Beispiel #2
0
 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();
 }
Beispiel #3
0
 protected function setUp()
 {
     parent::setUp();
     $this->key = new Rediska_Key('test');
 }
Beispiel #4
0
 protected function setUp()
 {
     parent::setUp();
     $this->list = new Rediska_Key_List('test');
 }
Beispiel #5
0
 protected function setUp()
 {
     parent::setUp();
     $writer = new Rediska_Zend_Log_Writer_Redis('log');
     $this->log = new Zend_Log($writer);
 }
Beispiel #6
0
 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);
 }
Beispiel #7
0
 protected function setUp()
 {
     parent::setUp();
     $this->queue = new Zend_Queue('Redis', array('adapterNamespace' => 'Rediska_Zend_Queue_Adapter'));
 }
Beispiel #8
0
 public function setUp()
 {
     parent::setUp();
     list($connection) = $this->rediska->getConnections();
     $this->config = $this->rediska->config($connection);
 }
 public function tearDown()
 {
     parent::tearDown();
     $this->transaction->discard();
 }
Beispiel #10
0
 protected function setUp()
 {
     parent::setUp();
     $this->saveHandler = new Rediska_Zend_Session_SaveHandler_Redis(array('keyPrefix' => 's_'));
 }
Beispiel #11
0
 protected function setUp()
 {
     parent::setUp();
     $this->cache = Zend_Cache::factory('Core', 'Rediska_Zend_Cache_Backend_Redis', array(), array(), false, true, true);
 }
Beispiel #12
0
 protected function setUp()
 {
     parent::setUp();
     $this->set = new Rediska_Key_SortedSet('test');
 }
Beispiel #13
0
 protected function setUp()
 {
     parent::setUp();
     $this->hash = new Rediska_Key_Hash('test');
 }