pure php APC-APCu backward (and forward) compatibility layer
- if you get
'Error: Call to undefined function apc_store()'and you have the apcu-extension installed - or you have trouble with installing pecl apcu_bu try this simple pure php replacement
- or you you have only the old apc-extension and you got errors like
'Call to undefined function apcu_fetch()'
... simple download: https://raw.githubusercontent.com/SegFaulty/php-apcu-bc/master/ApcApcuCompat.php and
include 'ApcApcuCompat.php';and you get the missing functions:
| APCu | APC |
|---|---|
| apcu_add | apc_add |
| apcu_cache_info | apc_cache_info |
| apcu_cas | apc_cas |
| apcu_clear_cache | apc_clear_cache |
| apcu_dec | apc_dec |
| apcu_delete | apc_delete |
| apcu_exists | apc_exists |
| apcu_fetch | apc_fetch |
| apcu_inc | apc_inc |
| apcu_sma_info | apc_sma_info |
| apcu_store | apc_store |