aboutsummaryrefslogtreecommitdiffstats
path: root/lib/files/storage
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-01-01 18:04:29 +0100
committerRobin Appelman <icewind@owncloud.com>2013-01-01 18:04:29 +0100
commitb41189de4420ea8a48adaaf7bb59f9227124b70a (patch)
tree9d0c46104770ee54d738c047d672a0854cb8585a /lib/files/storage
parentf2ca7023e1ece60dc3cebc5cd770c7373f53c93a (diff)
downloadnextcloud-server-b41189de4420ea8a48adaaf7bb59f9227124b70a.tar.gz
nextcloud-server-b41189de4420ea8a48adaaf7bb59f9227124b70a.zip
Cache: allow storage backends to overwrite Watcher
Diffstat (limited to 'lib/files/storage')
-rw-r--r--lib/files/storage/common.php7
-rw-r--r--lib/files/storage/storage.php5
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/files/storage/common.php b/lib/files/storage/common.php
index 3cf960d05df..ab167f28646 100644
--- a/lib/files/storage/common.php
+++ b/lib/files/storage/common.php
@@ -250,6 +250,13 @@ abstract class Common implements \OC\Files\Storage\Storage {
}
/**
+ * @return \OC\Files\Cache\Watcher
+ */
+ public function getWatcher(){
+ return new \OC\Files\Cache\Watcher($this);
+ }
+
+ /**
* get the owner of a path
* @param string $path The path to get the owner
* @return string uid or false
diff --git a/lib/files/storage/storage.php b/lib/files/storage/storage.php
index 73dcb8fe36b..b603381dc90 100644
--- a/lib/files/storage/storage.php
+++ b/lib/files/storage/storage.php
@@ -70,6 +70,11 @@ interface Storage{
public function getPermissionsCache();
/**
+ * @return \OC\Files\Cache\Watcher
+ */
+ public function getWatcher();
+
+ /**
* get the ETag for a file or folder
*
* @param string $path