コード例 #1
0
ファイル: ElggMemcache.php プロジェクト: elgg/elgg
 /**
  * Set the namespace of this cache.
  *
  * This will also add the Memcache namespace prefix as defined in settings.php
  *
  * @param string $namespace Namespace for cache
  *
  * @return void
  */
 public function setNamespace($namespace = "default")
 {
     $config_prefix = _elgg_services()->config->getVolatile('memcache_namespace_prefix');
     if ($config_prefix) {
         $namespace = $config_prefix . $namespace;
     }
     parent::setNamespace($namespace);
 }
コード例 #2
0
ファイル: ElggMemcache.php プロジェクト: thehereward/Elgg
 /**
  * Set the namespace of this cache.
  *
  * This will also add the Memcache namespace prefix as defined in settings.php
  *
  * @param string $namespace Namespace for cache
  *
  * @return void
  */
 public function setNamespace($namespace = "default")
 {
     if (isset($this->CONFIG->memcache_namespace_prefix)) {
         $namespace = $this->CONFIG->memcache_namespace_prefix . $namespace;
     }
     parent::setNamespace($namespace);
 }