aboutsummaryrefslogtreecommitdiffstats
path: root/lib/files/storage/common.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-04-26 00:00:18 +0200
committerRobin Appelman <icewind@owncloud.com>2013-04-26 00:00:18 +0200
commitbcd9a6903317a786f5f947374a8680130e4a8297 (patch)
tree93d14d0a49e7871f0b528edad510eee49052e13e /lib/files/storage/common.php
parent80e91e1ac6f8c3c3daa0b8e65ab038ebb57b0794 (diff)
downloadnextcloud-server-bcd9a6903317a786f5f947374a8680130e4a8297.tar.gz
nextcloud-server-bcd9a6903317a786f5f947374a8680130e4a8297.zip
Cache: seperate handing of numeric storage id's to it's own class
Diffstat (limited to 'lib/files/storage/common.php')
-rw-r--r--lib/files/storage/common.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/files/storage/common.php b/lib/files/storage/common.php
index 38fe5e546f6..e87fe3b5239 100644
--- a/lib/files/storage/common.php
+++ b/lib/files/storage/common.php
@@ -25,6 +25,7 @@ abstract class Common implements \OC\Files\Storage\Storage {
private $scanner;
private $permissioncache;
private $watcher;
+ private $storageCache;
public function __construct($parameters) {
}
@@ -300,6 +301,13 @@ abstract class Common implements \OC\Files\Storage\Storage {
return $this->watcher;
}
+ public function getStorageCache(){
+ if (!isset($this->storageCache)) {
+ $this->storageCache = new \OC\Files\Cache\Storage($this);
+ }
+ return $this->storageCache;
+ }
+
/**
* get the owner of a path
*
@@ -361,7 +369,7 @@ abstract class Common implements \OC\Files\Storage\Storage {
* get the free space in the storage
*
* @param $path
- * return int
+ * @return int
*/
public function free_space($path) {
return \OC\Files\FREE_SPACE_UNKNOWN;