summaryrefslogtreecommitdiffstats
path: root/lib/public/Files/Cache/IPropagator.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Files/Cache/IPropagator.php')
-rw-r--r--lib/public/Files/Cache/IPropagator.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/public/Files/Cache/IPropagator.php b/lib/public/Files/Cache/IPropagator.php
index 5494ec9a54e..541135b9e60 100644
--- a/lib/public/Files/Cache/IPropagator.php
+++ b/lib/public/Files/Cache/IPropagator.php
@@ -28,6 +28,25 @@ namespace OCP\Files\Cache;
*/
interface IPropagator {
/**
+ * Mark the beginning of a propagation batch
+ *
+ * Note that not all cache setups support propagation in which case this will be a noop
+ *
+ * Batching for cache setups that do support it has to be explicit since the cache state is not fully consistent
+ * before the batch is committed.
+ *
+ * @since 9.1.0
+ */
+ public function beginBatch();
+
+ /**
+ * Commit the active propagation batch
+ *
+ * @since 9.1.0
+ */
+ public function commitBatch();
+
+ /**
* @param string $internalPath
* @param int $time
* @since 9.0.0