summaryrefslogtreecommitdiffstats
path: root/lib/cache.php
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2013-09-17 17:46:33 +0200
committerThomas Tanghus <thomas@tanghus.net>2013-09-17 17:46:33 +0200
commitfe86182dac387817258942a46905f2b801862d4d (patch)
tree80f233a9994a52e350938058b99f46a527f427da /lib/cache.php
parent9b420e8660404de27e3af629bfca188ae90cf7bd (diff)
downloadnextcloud-server-fe86182dac387817258942a46905f2b801862d4d.tar.gz
nextcloud-server-fe86182dac387817258942a46905f2b801862d4d.zip
OC_Cache namespace changes and add UserCache to server container.
Refs #4863
Diffstat (limited to 'lib/cache.php')
-rw-r--r--lib/cache.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/cache.php b/lib/cache.php
index 48b9964ba9d..c99663a0ca5 100644
--- a/lib/cache.php
+++ b/lib/cache.php
@@ -6,7 +6,9 @@
* See the COPYING-README file.
*/
-class OC_Cache {
+namespace OC\Cache;
+
+class Cache {
/**
* @var OC_Cache $user_cache
*/
@@ -22,7 +24,7 @@ class OC_Cache {
*/
static public function getGlobalCache() {
if (!self::$global_cache) {
- self::$global_cache = new OC_Cache_FileGlobal();
+ self::$global_cache = new FileGlobal();
}
return self::$global_cache;
}
@@ -33,7 +35,7 @@ class OC_Cache {
*/
static public function getUserCache() {
if (!self::$user_cache) {
- self::$user_cache = new OC_Cache_File();
+ self::$user_cache = new File();
}
return self::$user_cache;
}