Merge pull request #25084 from owncloud/stable9-enc-cappedcache-getaccesslist
[stable9] Use capped cache for encryption's user access list
This commit is contained in:
commit
c5a60c3ae0
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
namespace OC\Encryption;
|
namespace OC\Encryption;
|
||||||
|
|
||||||
|
use OC\Cache\CappedMemoryCache;
|
||||||
|
|
||||||
class File implements \OCP\Encryption\IFile {
|
class File implements \OCP\Encryption\IFile {
|
||||||
|
|
||||||
/** @var Util */
|
/** @var Util */
|
||||||
|
@ -36,6 +38,7 @@ class File implements \OCP\Encryption\IFile {
|
||||||
|
|
||||||
public function __construct(Util $util) {
|
public function __construct(Util $util) {
|
||||||
$this->util = $util;
|
$this->util = $util;
|
||||||
|
$this->cache = new CappedMemoryCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue