$args =
[ $this->
getUniqueToken($key),
time(),
$ttlInSecond,
$key->
getLimit(),
$key->
getWeight(),
];
if (!
$this->
evaluate($script,
sprintf('{%s}',
$key),
$args)) { throw new SemaphoreAcquiringException($key, 'the script return false'
);
} } /**
* @return void
*/
public function putOffExpiration(Key
$key, float
$ttlInSecond) { if (0 >
$ttlInSecond) { throw new InvalidArgumentException("The TTL should be greater than 0, '
$ttlInSecond' given."
);
}