apcu_enabled

(PECL apcu >= 4.0.3)

apcu_enabledWhether APCu is usable in the current environment

Description

apcu_enabled(): bool

Returns whether APCu is usable in the current environment.

Parameters

This function has no parameters.

Return Values

Returns true when APCu is usable in the current environment, false otherwise.

add a note

User Contributed Notes 1 note

up
0
oj at plumislandmedia dot net
1 day ago
Please note that it's necessary to do

$apcu_ok = function_exists( 'apcu_enabled' ) ? apcu_enabled() : false;

to cope with the situation where the APCu extension is not available.
To Top