diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-01-01 18:04:29 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-01-01 18:04:29 +0100 |
commit | b41189de4420ea8a48adaaf7bb59f9227124b70a (patch) | |
tree | 9d0c46104770ee54d738c047d672a0854cb8585a /lib/files/storage | |
parent | f2ca7023e1ece60dc3cebc5cd770c7373f53c93a (diff) | |
download | nextcloud-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.php | 7 | ||||
-rw-r--r-- | lib/files/storage/storage.php | 5 |
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 |