summaryrefslogtreecommitdiffstats
path: root/lib/public/files
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-12-02 14:03:52 +0100
committerRobin Appelman <icewind@owncloud.com>2016-01-14 12:54:42 +0100
commit2dcdc8147780707b11c03c92281a8076b0a873b6 (patch)
tree37242a15e893bfdbc6367a1c0b956a1612a070da /lib/public/files
parentcdc8c40d60e874e1214f33b1c8f15d923ed90873 (diff)
downloadnextcloud-server-2dcdc8147780707b11c03c92281a8076b0a873b6.tar.gz
nextcloud-server-2dcdc8147780707b11c03c92281a8076b0a873b6.zip
propagator interface
Diffstat (limited to 'lib/public/files')
-rw-r--r--lib/public/files/cache/ipropagator.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/public/files/cache/ipropagator.php b/lib/public/files/cache/ipropagator.php
new file mode 100644
index 00000000000..90bdf9af53d
--- /dev/null
+++ b/lib/public/files/cache/ipropagator.php
@@ -0,0 +1,34 @@
+<?php
+/**
+ * @author Robin Appelman <icewind@owncloud.com>>
+ *
+ * @copyright Copyright (c) 2015, ownCloud, Inc.
+ * @license AGPL-3.0
+ *
+ * This code is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License, version 3,
+ * along with this program. If not, see <http://www.gnu.org/licenses/>
+ *
+ */
+
+namespace OCP\Files\Cache;
+
+/**
+ * Propagate etags and mtimes within the storage
+ */
+interface IPropagator {
+ /**
+ * @param string $internalPath
+ * @param int $time
+ * @return array[] all propagated cache entries
+ */
+ public function propagateChange($internalPath, $time);
+}