diff options
author | Faraz Samapoor <fsa@adlas.at> | 2023-09-26 10:48:17 +0330 |
---|---|---|
committer | Faraz Samapoor <fsa@adlas.at> | 2023-09-26 10:48:17 +0330 |
commit | 40d9349a2d5ed7700f35b471f77b709fdcc5a48d (patch) | |
tree | 155c00b7df65aa1792d2c288aa48d295ac5bcb91 /lib/private/Lock/MemcacheLockingProvider.php | |
parent | 2288e8e57101241724c26d2765875342e14528bc (diff) | |
download | nextcloud-server-40d9349a2d5ed7700f35b471f77b709fdcc5a48d.tar.gz nextcloud-server-40d9349a2d5ed7700f35b471f77b709fdcc5a48d.zip |
Refactors lib/private/Lock.
To improve code readability.
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
Diffstat (limited to 'lib/private/Lock/MemcacheLockingProvider.php')
-rw-r--r-- | lib/private/Lock/MemcacheLockingProvider.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/Lock/MemcacheLockingProvider.php b/lib/private/Lock/MemcacheLockingProvider.php index d4eebd7c302..8ad25576084 100644 --- a/lib/private/Lock/MemcacheLockingProvider.php +++ b/lib/private/Lock/MemcacheLockingProvider.php @@ -32,11 +32,11 @@ use OCP\IMemcacheTTL; use OCP\Lock\LockedException; class MemcacheLockingProvider extends AbstractLockingProvider { - private IMemcache $memcache; - - public function __construct(IMemcache $memcache, int $ttl = 3600) { - $this->memcache = $memcache; - $this->ttl = $ttl; + public function __construct( + private IMemcache $memcache, + int $ttl = 3600, + ) { + parent::__construct($ttl); } private function setTTL(string $path): void { |