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