public function __construct($name, Redis $redis) { $this->key = $name; $this->redis = $redis; $this->mutex = new PHPRedisMutex([$redis], $name); }