apcu_cas
PECL apcu >= 4.0.0
apcu_cas - Updates an old value with a new value
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