summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-01-24 16:01:19 +0100
committerRobin Appelman <icewind@owncloud.com>2014-01-24 16:01:19 +0100
commit1ab7ca0a19d5f3984e87f99945d81aecffbbae19 (patch)
treeffa2c39d575a6585c699c35304d50950c7fcdd8c
parent02aa44d055292e291a885491bd02b9d315058afb (diff)
downloadnextcloud-server-1ab7ca0a19d5f3984e87f99945d81aecffbbae19.tar.gz
nextcloud-server-1ab7ca0a19d5f3984e87f99945d81aecffbbae19.zip
Fix some phpdoc errors and rename interface
-rw-r--r--lib/private/memcache/factory.php4
-rw-r--r--lib/public/icachefactory.php (renamed from lib/public/cachefactory.php)8
-rw-r--r--lib/public/iservercontainer.php2
3 files changed, 9 insertions, 5 deletions
diff --git a/lib/private/memcache/factory.php b/lib/private/memcache/factory.php
index 48c97b59551..334cf9a1f0e 100644
--- a/lib/private/memcache/factory.php
+++ b/lib/private/memcache/factory.php
@@ -8,7 +8,9 @@
namespace OC\Memcache;
-class Factory {
+use \OCP\ICacheFactory;
+
+class Factory implements ICacheFactory {
/**
* @var string $globalPrefix
*/
diff --git a/lib/public/cachefactory.php b/lib/public/icachefactory.php
index 1bb0ea3dd51..874f1ec0a59 100644
--- a/lib/public/cachefactory.php
+++ b/lib/public/icachefactory.php
@@ -8,17 +8,19 @@
namespace OCP;
-interface CacheFactory{
+interface ICacheFactory{
/**
* Get a memory cache instance
*
+ * All entries added trough the cache instance will be namespaced by $prefix to prevent collisions between apps
+ *
* @param string $prefix
- * @return $return \OCP\ICache
+ * @return \OCP\ICache
*/
public function create($prefix = '');
/**
- * Check if a memory cache backend is available
+ * Check if any memory cache backend is available
*
* @return bool
*/
diff --git a/lib/public/iservercontainer.php b/lib/public/iservercontainer.php
index 67884bdc3e4..5473f3ee334 100644
--- a/lib/public/iservercontainer.php
+++ b/lib/public/iservercontainer.php
@@ -144,7 +144,7 @@ interface IServerContainer {
/**
* Returns an \OCP\CacheFactory instance
*
- * @return \OCP\CacheFactory
+ * @return \OCP\ICacheFactory
*/
function getMemCacheFactory();