Skip to content

Commit

Permalink
regenerated files
Browse files Browse the repository at this point in the history
  • Loading branch information
Kharhamel committed Sep 23, 2019
1 parent 98ce49b commit db160b2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions generated/apcu.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,15 @@ function apcu_cas(string $key, int $old, int $new): void
* @param int $step The step, or value to decrease.
* @param bool $success Optionally pass the success or fail boolean value to
* this referenced variable.
* @param int $ttl TTL to use if the operation inserts a new value (rather than decrementing an existing one).
* @return int Returns the current value of key's value on success
* @throws ApcuException
*
*/
function apcu_dec(string $key, int $step = 1, ?bool &$success = null): int
function apcu_dec(string $key, int $step = 1, ?bool &$success = null, int $ttl = 0): int
{
error_clear_last();
$result = \apcu_dec($key, $step, $success);
$result = \apcu_dec($key, $step, $success, $ttl);
if ($result === false) {
throw ApcuException::createFromPhpError();
}
Expand Down Expand Up @@ -96,14 +97,15 @@ function apcu_delete($key): void
* @param int $step The step, or value to increase.
* @param bool $success Optionally pass the success or fail boolean value to
* this referenced variable.
* @param int $ttl TTL to use if the operation inserts a new value (rather than incrementing an existing one).
* @return int Returns the current value of key's value on success
* @throws ApcuException
*
*/
function apcu_inc(string $key, int $step = 1, ?bool &$success = null): int
function apcu_inc(string $key, int $step = 1, ?bool &$success = null, int $ttl = 0): int
{
error_clear_last();
$result = \apcu_inc($key, $step, $success);
$result = \apcu_inc($key, $step, $success, $ttl);
if ($result === false) {
throw ApcuException::createFromPhpError();
}
Expand Down

0 comments on commit db160b2

Please sign in to comment.