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