Capped cache for user config

This commit is contained in:
Jörn Friedrich Dreyer 2016-06-17 12:46:28 +02:00 committed by Lukas Reschke
parent 07436d089b
commit cf3b5e3e86
No known key found for this signature in database
GPG Key ID: 9AB0ADB949B6898C
1 changed files with 4 additions and 2 deletions

View File

@ -27,6 +27,7 @@
*/
namespace OC;
use OC\Cache\CappedMemoryCache;
use OCP\IDBConnection;
use OCP\PreConditionNotMetException;
@ -58,14 +59,15 @@ class AllConfig implements \OCP\IConfig {
* - deleteAllUserValues
* - deleteAppFromAllUsers
*
* @var array $userCache
* @var CappedMemoryCache $userCache
*/
private $userCache = array();
private $userCache;
/**
* @param SystemConfig $systemConfig
*/
function __construct(SystemConfig $systemConfig) {
$this->userCache = new CappedMemoryCache();
$this->systemConfig = $systemConfig;
}