protected function add($client, $key, $value, $expire)
{
try {
return $client->set($key, $value, "EX", $expire, "NX");
} catch (PredisException $e) {
$message = sprintf("Failed to acquire lock for key '%s' at %s", $key, $this->getRedisIdentifier($client));
throw new LockAcquireException($message, 0, $e);
}
}