apcu_dec

PECL apcu >= 4.0.0
apcu_dec - Decrease a stored number
Manual
Code Examples

apcu_dec( string$key, [int$step = 1], [boolsuccess], [int$ttl = 0] ): int|false

Decreases a stored integer value.

Parameters

key

The key of the value being decreased.

step

The step, or value to decrease.

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 decrementing an existing one).

Return Values

Returns the current value of key's value on success, or false on failure

Related Functions

Example of apcu_dec

Show all examples for apcu_dec

PHP Version:


Function apcu_dec:

APC User Cache Functions

Most used PHP functions