/**
  * @params include:
  *   - redisServers : list of servers (address:<port>) (the first is the master)
  *   - redisConf    : additional redis configuration
  *
  * @param array $config
  */
 public function __construct(array $config)
 {
     parent::__construct($config);
     $redisConf = $config['redisConfig'];
     $redisConf['serializer'] = 'none';
     // manage that in this class
     $this->redisPool = RedisConnectionPool::singleton($redisConf);
     $this->servers = $config['redisServers'];
     $this->lockMgr = new RedisLockManager(array('lockServers' => array('srv1' => $this->servers[0]), 'srvsByBucket' => array(0 => array('srv1')), 'redisConfig' => $config['redisConfig']));
 }
Ejemplo n.º 2
0
 public function __construct(array $config)
 {
     parent::__construct(array('cacheId' => 'none'));
 }