Exemplo n.º 1
0
 /**
  *  _load
  *
  *  @access protected
  */
 protected function _load()
 {
     parent::_load();
     if ($this->config['use_pconnect']) {
         $this->m = new Memcached($this->ctl->getAppId());
     } else {
         $this->m = new Memcached();
     }
     if (isset($this->config['servers']) && is_array($this->config['servers'])) {
         $this->m->addServers($this->config['servers']);
     } else {
         $this->m->addServer($this->config['host'], $this->config['port']);
     }
     $this->m->setOption(Memcached::OPT_CONNECT_TIMEOUT, $this->config['timeout'] * 1000);
     //$this->m->setOption(Memcached::OPT_CONNECT_TIMEOUT, $this->config['retry']);
 }
Exemplo n.º 2
0
 /**
  *  constructor
  *
  */
 public function __construct(Ethna_ContainerInterface $container)
 {
     parent::__construct($container);
     if ($this->opt['use_pconnect']) {
         $this->m = new Memcached($container->getAppId());
     } else {
         $this->m = new Memcached();
     }
     if (isset($this->opt['servers']) && is_array($this->opt['servers'])) {
         $this->m->addServers($this->opt['servers']);
     } else {
         $this->m->addServer($this->opt['host'], $this->opt['port']);
     }
     $this->m->setOption(Memcached::OPT_CONNECT_TIMEOUT, $this->opt['timeout'] * 1000);
     //$this->m->setOption(Memcached::OPT_CONNECT_TIMEOUT, $this->opt['retry']);
 }
Exemplo n.º 3
0
 /**
  *  _load
  *
  *  @access protected
  */
 public function _load()
 {
     parent::_load();
     $this->memcache_pool = array();
 }
Exemplo n.º 4
0
 /**
  *  _load
  *
  *  @access protected
  */
 protected function _load()
 {
     parent::_load();
     $this->memcache_pool = array();
 }
Exemplo n.º 5
0
 /**
  *  コンストラクタ
  *
  *  @access public
  */
 public function __construct($controller)
 {
     parent::__construct($controller);
     $this->memcache_pool = array();
 }
Exemplo n.º 6
0
 /**
  *  コンストラクタ
  *
  *  @access public
  */
 public function __construct(Ethna_ContainerInterface $container)
 {
     parent::__construct($container);
     $this->memcache_pool = array();
 }
 /**
  *  Ethna_Plugin_Cachemanager_Memcacheクラスのコンストラクタ
  *
  *  @access public
  */
 function Ethna_Plugin_Cachemanager_Memcache(&$controller)
 {
     parent::Ethna_Plugin_Cachemanager($controller);
     $this->memcache_pool = array();
 }
 /**
  *  Ethna_Plugin_Cachemanager_Memcacheクラスのコンストラクタ
  *
  *  @access public
  */
 function Ethna_Plugin_Cachemanager_Memcache()
 {
     parent::Ethna_Plugin_Cachemanager();
     $this->memcache_pool = array();
 }
Exemplo n.º 9
0
 public function __construct(Ethna_ContainerInterface $container)
 {
     parent::__construct($container);
     $this->tmpDir = $container->getTmpdir();
 }