if (!function_exists('apc_store') && function_exists('apcu_store')) { // Emulate the API of APC, over APCU // Note: for PHP < 7, this compatibility used to be provided by APCU itself (if compiled with some options) // for PHP 7+, it can be provided by the mean of apcu_bc, which is not so simple to install // The current emulation aims at skipping this complexity function apc_store($key, $var, $ttl = 0) { return apcu_store($key, $var, $ttl); } function apc_fetch($key) { return apcu_fetch($key); } function apc_delete($key) { return apcu_delete($key); } }