Capped cache for user config

This commit is contained in:
Jörn Friedrich Dreyer 2016-06-17 12:46:28 +02:00
parent 7aa825f7dc
commit 0e3682d810
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;
}