コード例 #1
0
ファイル: acm_xcache.php プロジェクト: eyumay/ju.ejhs
 function acm()
 {
     parent::acm_memory();
     if (!function_exists('ini_get') || (int) ini_get('xcache.var_size') <= 0) {
         trigger_error('Increase xcache.var_size setting above 0 or enable ini_get() to use this ACM module.', E_USER_ERROR);
     }
 }
コード例 #2
0
ファイル: acm_memcache.php プロジェクト: BACKUPLIB/mwenhanced
 function acm()
 {
     // Call the parent constructor
     parent::acm_memory();
     $this->memcache = new Memcache();
     $this->memcache->connect(PHPBB_ACM_MEMCACHE_HOST, PHPBB_ACM_MEMCACHE_PORT);
     $this->flags = PHPBB_ACM_MEMCACHE_COMPRESS ? MEMCACHE_COMPRESSED : 0;
 }
コード例 #3
0
ファイル: acm_memcache.php プロジェクト: noprom/cryptdb
 function acm()
 {
     // Call the parent constructor
     parent::acm_memory();
     $this->memcache = new Memcache();
     foreach (explode(',', PHPBB_ACM_MEMCACHE) as $u) {
         $parts = explode('/', $u);
         $this->memcache->addServer(trim($parts[0]), trim($parts[1]));
     }
     $this->flags = PHPBB_ACM_MEMCACHE_COMPRESS ? MEMCACHE_COMPRESSED : 0;
 }
コード例 #4
0
 function acm()
 {
     // Call the parent constructor
     parent::acm_memory();
     $this->redis = new Redis();
     $this->redis->connect(PHPBB_ACM_REDIS_HOST, PHPBB_ACM_REDIS_PORT);
     if (defined('PHPBB_ACM_REDIS_PASSWORD')) {
         if (!$this->redis->auth(PHPBB_ACM_REDIS_PASSWORD)) {
             global $acm_type;
             trigger_error("Incorrect password for the ACM module {$acm_type}.", E_USER_ERROR);
         }
     }
     $this->redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_PHP);
     $this->redis->setOption(Redis::OPT_PREFIX, $this->key_prefix);
     if (defined('PHPBB_ACM_REDIS_DB')) {
         if (!$this->redis->select(PHPBB_ACM_REDIS_DB)) {
             global $acm_type;
             trigger_error("Incorrect database for the ACM module {$acm_type}.", E_USER_ERROR);
         }
     }
 }