summaryrefslogtreecommitdiffstats
path: root/lib/cache.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-09-18 22:22:51 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-09-18 22:22:51 +0200
commit1274d6116dc59a8238ad9d02d467260387fe2eac (patch)
tree8509cac611bd32ebff26f7bbedfb6eaf2ed33e2c /lib/cache.php
parent09d043729a41a0e8966ed3bb81567ed1009a37b6 (diff)
downloadnextcloud-server-1274d6116dc59a8238ad9d02d467260387fe2eac.tar.gz
nextcloud-server-1274d6116dc59a8238ad9d02d467260387fe2eac.zip
updating php docs
Diffstat (limited to 'lib/cache.php')
-rw-r--r--lib/cache.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/cache.php b/lib/cache.php
index a4fa8be710c..a311f10a00f 100644
--- a/lib/cache.php
+++ b/lib/cache.php
@@ -10,17 +10,17 @@ namespace OC;
class Cache {
/**
- * @var OC_Cache $user_cache
+ * @var Cache $user_cache
*/
static protected $user_cache;
/**
- * @var OC_Cache $global_cache
+ * @var Cache $global_cache
*/
static protected $global_cache;
/**
* get the global cache
- * @return OC_Cache
+ * @return Cache
*/
static public function getGlobalCache() {
if (!self::$global_cache) {
@@ -31,7 +31,7 @@ class Cache {
/**
* get the user cache
- * @return OC_Cache
+ * @return Cache
*/
static public function getUserCache() {
if (!self::$user_cache) {
@@ -87,7 +87,7 @@ class Cache {
/**
* clear the user cache of all entries starting with a prefix
- * @param string prefix (optional)
+ * @param string $prefix (optional)
* @return bool
*/
static public function clear($prefix='') {
@@ -95,6 +95,11 @@ class Cache {
return $user_cache->clear($prefix);
}
+ /**
+ * creates cache key based on the files given
+ * @param $files
+ * @return string
+ */
static public function generateCacheKeyFromFiles($files) {
$key = '';
sort($files);