]> source.dussan.org Git - nextcloud-server.git/commitdiff
Capped cache for user config
authorJörn Friedrich Dreyer <jfd@butonic.de>
Fri, 17 Jun 2016 10:58:55 +0000 (12:58 +0200)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Fri, 17 Jun 2016 10:58:55 +0000 (12:58 +0200)
lib/private/AllConfig.php

index e082cea3305ea6c170ef0387a356feab7eb5a56a..c8b2009fcc7178513278a119cd34177f8f4e7128 100644 (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;
        }