apcu_inc

PECL apcu >= 4.0.0
apcu_inc - Increase a stored number
Manual
Code Examples

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

Related Functions

Example of apcu_inc

Show all examples for apcu_inc

PHP Version:


Function apcu_inc:

APC User Cache Functions

Most used PHP functions