Skip to content

Commit 35c9cc2

Browse files
committed
regenerated files
1 parent 635a4f8 commit 35c9cc2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

generated/apcu.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,15 @@ function apcu_cas(string $key, int $old, int $new): void
5353
* @param int $step The step, or value to decrease.
5454
* @param bool $success Optionally pass the success or fail boolean value to
5555
* this referenced variable.
56+
* @param int $ttl TTL to use if the operation inserts a new value (rather than decrementing an existing one).
5657
* @return int Returns the current value of key's value on success
5758
* @throws ApcuException
5859
*
5960
*/
60-
function apcu_dec(string $key, int $step = 1, ?bool &$success = null): int
61+
function apcu_dec(string $key, int $step = 1, ?bool &$success = null, int $ttl = 0): int
6162
{
6263
error_clear_last();
63-
$result = \apcu_dec($key, $step, $success);
64+
$result = \apcu_dec($key, $step, $success, $ttl);
6465
if ($result === false) {
6566
throw ApcuException::createFromPhpError();
6667
}
@@ -96,14 +97,15 @@ function apcu_delete($key): void
9697
* @param int $step The step, or value to increase.
9798
* @param bool $success Optionally pass the success or fail boolean value to
9899
* this referenced variable.
100+
* @param int $ttl TTL to use if the operation inserts a new value (rather than incrementing an existing one).
99101
* @return int Returns the current value of key's value on success
100102
* @throws ApcuException
101103
*
102104
*/
103-
function apcu_inc(string $key, int $step = 1, ?bool &$success = null): int
105+
function apcu_inc(string $key, int $step = 1, ?bool &$success = null, int $ttl = 0): int
104106
{
105107
error_clear_last();
106-
$result = \apcu_inc($key, $step, $success);
108+
$result = \apcu_inc($key, $step, $success, $ttl);
107109
if ($result === false) {
108110
throw ApcuException::createFromPhpError();
109111
}

0 commit comments

Comments
 (0)