summaryrefslogtreecommitdiffstats
path: root/lib/public/files/cache/iwatcher.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/files/cache/iwatcher.php')
-rw-r--r--lib/public/files/cache/iwatcher.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/files/cache/iwatcher.php b/lib/public/files/cache/iwatcher.php
index f9695f65855..a61975036f8 100644
--- a/lib/public/files/cache/iwatcher.php
+++ b/lib/public/files/cache/iwatcher.php
@@ -23,6 +23,8 @@ namespace OCP\Files\Cache;
/**
* check the storage backends for updates and change the cache accordingly
+ *
+ * @since 9.0.0
*/
interface IWatcher {
const CHECK_NEVER = 0; // never check the underlying filesystem for updates
@@ -31,11 +33,13 @@ interface IWatcher {
/**
* @param int $policy either IWatcher::CHECK_NEVER, IWatcher::CHECK_ONCE, IWatcher::CHECK_ALWAYS
+ * @since 9.0.0
*/
public function setPolicy($policy);
/**
* @return int either IWatcher::CHECK_NEVER, IWatcher::CHECK_ONCE, IWatcher::CHECK_ALWAYS
+ * @since 9.0.0
*/
public function getPolicy();
@@ -45,6 +49,7 @@ interface IWatcher {
* @param string $path
* @param ICacheEntry|null $cachedEntry
* @return boolean true if path was updated
+ * @since 9.0.0
*/
public function checkUpdate($path, $cachedEntry = null);
@@ -53,6 +58,7 @@ interface IWatcher {
*
* @param string $path
* @param ICacheEntry $cachedData
+ * @since 9.0.0
*/
public function update($path, $cachedData);
@@ -62,6 +68,7 @@ interface IWatcher {
* @param string $path
* @param ICacheEntry $cachedData
* @return bool
+ * @since 9.0.0
*/
public function needsUpdate($path, $cachedData);
@@ -69,6 +76,7 @@ interface IWatcher {
* remove deleted files in $path from the cache
*
* @param string $path
+ * @since 9.0.0
*/
public function cleanFolder($path);
}