apcu_inc
PECL apcu >= 4.0.0
apcu_inc - Increase a stored number
Manual
apcu_inc(
string$key,
[int$step = 1],
[boolsuccess ],
[int$ttl = 0] ): int|false
Increases a stored number.
Parameters
- key
-
The key of the value being increased.
- step
-
The step, or value to increase.
- success
-
Optionally pass the success or fail boolean value to this referenced variable.
- ttl
-
TTL to use if the operation inserts a new value (rather than incrementing an existing one).
Return Values
Returns the current value of key's value on success, or false on failure