float $initialTtl The expiration delay of locks in seconds:
public function __construct(\Redis|Relay|\RedisArray|\RedisCluster|\Predis\ClientInterface $redis, float $initialTtl = 300.0) { if ($initialTtl <= 0) { throw new InvalidTtlException(\sprintf('"%s()" expects a strictly positive TTL. Got %d.', __METHOD__, $initialTtl)); } }