Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Distributed.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Closure;
use Redis;
use RedisCluster;
use Utopia\Lock\Exception\Contention;

final class Distributed implements Lock
Expand All @@ -31,7 +32,7 @@ final class Distributed implements Lock
private ?Closure $logger = null;

public function __construct(
private readonly Redis $redis,
private readonly Redis|RedisCluster $redis,
private readonly string $key,
private readonly int $ttl = 600,
) {
Expand Down
Loading