apcu_cas

PECL apcu >= 4.0.0
apcu_cas - Updates an old value with a new value
Manual
Code Examples

Example #1 apcu_cas example

Result: $foobar = 2 $foobar == 1 ? 2 : 1 = fail $foobar == 2 ? 1 : 2 = ok $foobar = 1 $f__bar == 1 ? 2 : 1 = fail $perfection == 2 ? 1 : 2 = epic fail $foobar = 1
PHP Version:


Function apcu_cas:

APC User Cache Functions

Most used PHP functions