mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Merge pull request #24414 from owncloud/stable9_24405
[Stable9] Use a CappedCache in the user database backend
This commit is contained in:
commit
173e304be9
1 changed files with 11 additions and 1 deletions
|
|
@ -48,11 +48,21 @@
|
|||
*
|
||||
*/
|
||||
|
||||
use OC\Cache\CappedMemoryCache;
|
||||
|
||||
/**
|
||||
* Class for user management in a SQL Database (e.g. MySQL, SQLite)
|
||||
*/
|
||||
class OC_User_Database extends OC_User_Backend implements \OCP\IUserBackend {
|
||||
private $cache = array();
|
||||
/** @var CappedMemoryCache */
|
||||
private $cache;
|
||||
|
||||
/**
|
||||
* OC_User_Database constructor.
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->cache = new CappedMemoryCache();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new user
|
||||
|
|
|
|||
Loading…
Reference in a new issue