diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-05-20 15:10:18 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-06-02 15:07:47 +0200 |
commit | 9fb44e34affe0d4d58ecaa137e2f33d884139f11 (patch) | |
tree | 7f4be8e007b1b10005f9f4c626d23c9ae938ca4f /lib/public/Files | |
parent | f37d519d0d8acdbb6343df324b65b53b8f8d345b (diff) | |
download | nextcloud-server-9fb44e34affe0d4d58ecaa137e2f33d884139f11.tar.gz nextcloud-server-9fb44e34affe0d4d58ecaa137e2f33d884139f11.zip |
add propagator batching
Diffstat (limited to 'lib/public/Files')
-rw-r--r-- | lib/public/Files/Cache/IPropagator.php | 19 |
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 |