Skip to content

Instantly share code, notes, and snippets.

@devsmt
Created October 6, 2016 07:54
Show Gist options
  • Save devsmt/471a5f1136406d72ae0bb78c041c99ae to your computer and use it in GitHub Desktop.
Save devsmt/471a5f1136406d72ae0bb78c041c99ae to your computer and use it in GitHub Desktop.
// php7 emulation of apc_* functions
if (!function_exists('apc_fetch')) {
function apc_fetch($key) {
return apcu_fetch($key);
}
function apc_exists($keys) {
return apcu_exists($keys);
}
function apc_delete($key) {
return apcu_delete($key);
}
function apc_store($key, $var) {
return apcu_store($key, $var);
}
function apc_inc($key, $step = 1) {
return apcu_inc($key, $step);
}
function apc_cache_info($cache_type = "", $limited = false){ return apcu_cache_info($limited); }
function apc_clear_cache() { return apcu_clear_cache(); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment