Substitute for apc_exists()

206 views Asked by At

I want to replace Apc_bc to APCU.

What I use Apc_bc now are just three function.

apc_exists()

apc_fetch()

apc_store()

then, now I found apcu_fetch() and apc_store().

However I can't find the substitute for apc_exists().

How can I solve it ??

Environment - PHP7.3.8

1

There are 1 answers

1
wally On

php.net contains a complete function list for APCU, which appears to closely reflect APC's (same function names, simply substituting apc with apcu).

The one you're looking for is (unimaginatively!) named apcu_exists.