aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/icachefactory.php
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 /lib/public/icachefactory.php
parent02aa44d055292e291a885491bd02b9d315058afb (diff)
downloadnextcloud-server-1ab7ca0a19d5f3984e87f99945d81aecffbbae19.tar.gz
nextcloud-server-1ab7ca0a19d5f3984e87f99945d81aecffbbae19.zip
Fix some phpdoc errors and rename interface
Diffstat (limited to 'lib/public/icachefactory.php')
-rw-r--r--lib/public/icachefactory.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/public/icachefactory.php b/lib/public/icachefactory.php
new file mode 100644
index 00000000000..874f1ec0a59
--- /dev/null
+++ b/lib/public/icachefactory.php
@@ -0,0 +1,28 @@
+<?php
+/**
+ * Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+namespace OCP;
+
+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 \OCP\ICache
+ */
+ public function create($prefix = '');
+
+ /**
+ * Check if any memory cache backend is available
+ *
+ * @return bool
+ */
+ public function isAvailable();
+}