aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Memcache/Factory.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-09-09 16:59:59 +0200
committerRobin Appelman <robin@icewind.nl>2024-09-09 16:59:59 +0200
commitda59fd4389bedd6b643f277b5e411872137569b3 (patch)
tree89a6c3cac4b2f066d104e633439a3709cd0797ad /lib/private/Memcache/Factory.php
parent0f732199d22cf85d991f48389c33fb6e76b7eefc (diff)
downloadnextcloud-server-sharding-code-fixes.tar.gz
nextcloud-server-sharding-code-fixes.zip
fix: misc code fixes around db shardingsharding-code-fixes
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Memcache/Factory.php')
-rw-r--r--lib/private/Memcache/Factory.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Memcache/Factory.php b/lib/private/Memcache/Factory.php
index 931c871d0f1..370130912d6 100644
--- a/lib/private/Memcache/Factory.php
+++ b/lib/private/Memcache/Factory.php
@@ -6,6 +6,7 @@
*/
namespace OC\Memcache;
+use Closure;
use OCP\Cache\CappedMemoryCache;
use OCP\ICache;
use OCP\ICacheFactory;
@@ -40,7 +41,7 @@ class Factory implements ICacheFactory {
private IProfiler $profiler;
/**
- * @param callable $globalPrefixClosure
+ * @param Closure $globalPrefixClosure
* @param LoggerInterface $logger
* @param ?class-string<ICache> $localCacheClass
* @param ?class-string<ICache> $distributedCacheClass
@@ -48,7 +49,7 @@ class Factory implements ICacheFactory {
* @param string $logFile
*/
public function __construct(
- private $globalPrefixClosure,
+ private Closure $globalPrefixClosure,
LoggerInterface $logger,
IProfiler $profiler,
?string $localCacheClass = null,