コード例 #1
0
ファイル: Memcached.php プロジェクト: hiroki-ta/my.project
 /**
  *  _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']);
 }
コード例 #2
0
ファイル: Memcached.php プロジェクト: dqneo/ethnam
 /**
  *  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']);
 }
コード例 #3
0
ファイル: Memcache.php プロジェクト: t-f-m/ethna
 /**
  *  _load
  *
  *  @access protected
  */
 public function _load()
 {
     parent::_load();
     $this->memcache_pool = array();
 }
コード例 #4
0
ファイル: Memcache.php プロジェクト: nulltask/ethna
 /**
  *  _load
  *
  *  @access protected
  */
 protected function _load()
 {
     parent::_load();
     $this->memcache_pool = array();
 }
コード例 #5
0
ファイル: Memcache.php プロジェクト: khsk/ethnam
 /**
  *  コンストラクタ
  *
  *  @access public
  */
 public function __construct($controller)
 {
     parent::__construct($controller);
     $this->memcache_pool = array();
 }
コード例 #6
0
ファイル: Memcache.php プロジェクト: dqneo/ethnam
 /**
  *  コンストラクタ
  *
  *  @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();
 }
コード例 #8
0
 /**
  *  Ethna_Plugin_Cachemanager_Memcacheクラスのコンストラクタ
  *
  *  @access public
  */
 function Ethna_Plugin_Cachemanager_Memcache()
 {
     parent::Ethna_Plugin_Cachemanager();
     $this->memcache_pool = array();
 }
コード例 #9
0
ファイル: Localfile.php プロジェクト: dqneo/ethnam
 public function __construct(Ethna_ContainerInterface $container)
 {
     parent::__construct($container);
     $this->tmpDir = $container->getTmpdir();
 }