diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-07-16 15:42:40 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-07-16 15:42:40 +0200 |
commit | 69048ab71f615ea7a219f7f119855319cf38621d (patch) | |
tree | ae05bac4dea7d0ed37aa46acc3e057089b5f84ce /lib/memcache/cache.php | |
parent | d82c1dfcabe84709ff02ea5c13c82c573d524937 (diff) | |
download | nextcloud-server-69048ab71f615ea7a219f7f119855319cf38621d.tar.gz nextcloud-server-69048ab71f615ea7a219f7f119855319cf38621d.zip |
memchache: use prefix string instead of global flag
Diffstat (limited to 'lib/memcache/cache.php')
-rw-r--r-- | lib/memcache/cache.php | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/memcache/cache.php b/lib/memcache/cache.php index b9e0c2249ac..9db69ae4104 100644 --- a/lib/memcache/cache.php +++ b/lib/memcache/cache.php @@ -9,12 +9,21 @@ namespace OC\Memcache; abstract class Cache { - + /** + * @var string $prefix + */ + protected $prefix; /** - * @param bool $global + * @param string $prefix */ - abstract public function __construct($global); + public function __construct($prefix = '') { + $this->prefix = \OC_Util::getInstanceId() . '/' . $prefix; + } + + public function getPrefix() { + return $this->prefix; + } /** * @param string $key |