PHP APC Manage integer cache values #51


In this tutorial you will learn how to manage integer cache values in PHP APC. I will explain the PHP functions apc_dec, apc_inc and apc_cas.

Code used during this tutorial:

Useful links:
http://php.net/manual/en/function.apc-dec.php
http://php.net/manual/en/function.apc-inc.php
http://php.net/manual/en/function.apc-cas.php
https://en.wikipedia.org/wiki/Compare-and-swap