Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-07-31 12:10:48 +0300
committerJulius Härtl <jus@bitgrid.net>2020-09-17 20:01:48 +0300
commitbfd2f39fed4ccf4ce8fec2da5a9d59498ee14833 (patch)
treec8bfed571eacbd8e3271470958b9eaff9c6a5121 /lib
parentbe1bcacced8dedab1301b979f32a6ad30ad1acc6 (diff)
Transfer shares of the transferred root node
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Config/UserMountCache.php5
-rw-r--r--lib/public/Files/Config/IUserMountCache.php7
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/private/Files/Config/UserMountCache.php b/lib/private/Files/Config/UserMountCache.php
index 9cf3b43a431..32bfd5a71f3 100644
--- a/lib/private/Files/Config/UserMountCache.php
+++ b/lib/private/Files/Config/UserMountCache.php
@@ -409,4 +409,9 @@ class UserMountCache implements IUserMountCache {
$result->closeCursor();
return $results;
}
+
+ public function clear(): void {
+ $this->cacheInfoCache = new CappedMemoryCache();
+ $this->mountsForUsers = new CappedMemoryCache();
+ }
}
diff --git a/lib/public/Files/Config/IUserMountCache.php b/lib/public/Files/Config/IUserMountCache.php
index 9fca98dc843..fde4898bd39 100644
--- a/lib/public/Files/Config/IUserMountCache.php
+++ b/lib/public/Files/Config/IUserMountCache.php
@@ -117,4 +117,11 @@ interface IUserMountCache {
* @since 13.0.0
*/
public function getUsedSpaceForUsers(array $users);
+
+ /**
+ * Clear all entries from the in-memory cache
+ *
+ * @since 20.0.0
+ */
+ public function clear(): void;
}