summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-06-10 13:02:41 +0200
committerVincent Petry <pvince81@owncloud.com>2016-06-10 13:02:41 +0200
commit77caa0e91346ec4478afcac10d102a0e9e4c3ce4 (patch)
tree88bd6c3fb33c0f86cc4251a7d9d66d4e6c09daf6 /lib
parent68c3b23e0421a59d5423357e516ab7f4df9fcfbc (diff)
downloadnextcloud-server-77caa0e91346ec4478afcac10d102a0e9e4c3ce4.tar.gz
nextcloud-server-77caa0e91346ec4478afcac10d102a0e9e4c3ce4.zip
Use capped cache for encryption's user access list
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Encryption/File.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Encryption/File.php b/lib/private/Encryption/File.php
index 2bd9fb02100..3573ff19c6e 100644
--- a/lib/private/Encryption/File.php
+++ b/lib/private/Encryption/File.php
@@ -22,6 +22,8 @@
namespace OC\Encryption;
+use OC\Cache\CappedMemoryCache;
+
class File implements \OCP\Encryption\IFile {
/** @var Util */
@@ -36,6 +38,7 @@ class File implements \OCP\Encryption\IFile {
public function __construct(Util $util) {
$this->util = $util;
+ $this->cache = new CappedMemoryCache();
}