Created
October 6, 2016 07:54
-
-
Save devsmt/471a5f1136406d72ae0bb78c041c99ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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