aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-06-10 15:35:39 +0200
committerGitHub <noreply@github.com>2016-06-10 15:35:39 +0200
commitffb2838dd89cc1eb4121f82c0954d6785b4448bb (patch)
tree299c438592a29651f90df05f84fabafd67919cbf /lib
parentc14198b874e147c635d8f47da285dda8c99fdbb2 (diff)
parent77caa0e91346ec4478afcac10d102a0e9e4c3ce4 (diff)
downloadnextcloud-server-ffb2838dd89cc1eb4121f82c0954d6785b4448bb.tar.gz
nextcloud-server-ffb2838dd89cc1eb4121f82c0954d6785b4448bb.zip
Merge pull request #25055 from owncloud/enc-cappedcache-getaccesslist
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();
}