aboutsummaryrefslogtreecommitdiffstats
path: root/lib/memcache/cache.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/memcache/cache.php')
-rw-r--r--lib/memcache/cache.php15
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