summaryrefslogtreecommitdiffstats
path: root/lib/public/icache.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-04-16 17:00:08 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-04-16 17:00:08 +0200
commit7644950b48b094bfe5675348aefb7cf5747d325b (patch)
treea1792e21239a86f471da99b454134a5d8533ef77 /lib/public/icache.php
parent8653da6c16597959c7bd0f0b202747ff96204575 (diff)
downloadnextcloud-server-7644950b48b094bfe5675348aefb7cf5747d325b.tar.gz
nextcloud-server-7644950b48b094bfe5675348aefb7cf5747d325b.zip
Add @since tags to all methods in public namespace
* enhance the app development experience - you can look up the method introduction right inside the code without searching via git blame * easier to write apps for multiple versions
Diffstat (limited to 'lib/public/icache.php')
-rw-r--r--lib/public/icache.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/public/icache.php b/lib/public/icache.php
index 215b490fb5f..d7593a263c8 100644
--- a/lib/public/icache.php
+++ b/lib/public/icache.php
@@ -33,6 +33,7 @@ namespace OCP;
/**
* This interface defines method for accessing the file based user cache.
+ * @since 6.0.0
*/
interface ICache {
@@ -40,6 +41,7 @@ interface ICache {
* Get a value from the user cache
* @param string $key
* @return mixed
+ * @since 6.0.0
*/
public function get($key);
@@ -49,6 +51,7 @@ interface ICache {
* @param mixed $value
* @param int $ttl Time To Live in seconds. Defaults to 60*60*24
* @return bool
+ * @since 6.0.0
*/
public function set($key, $value, $ttl = 0);
@@ -56,6 +59,7 @@ interface ICache {
* Check if a value is set in the user cache
* @param string $key
* @return bool
+ * @since 6.0.0
*/
public function hasKey($key);
@@ -63,6 +67,7 @@ interface ICache {
* Remove an item from the user cache
* @param string $key
* @return bool
+ * @since 6.0.0
*/
public function remove($key);
@@ -70,6 +75,7 @@ interface ICache {
* Clear the user cache of all entries starting with a prefix
* @param string $prefix (optional)
* @return bool
+ * @since 6.0.0
*/
public function clear($prefix = '');
}