apcu_enabled

(PECL apcu >= 4.0.3)

apcu_enabledWhether APCu is usable in the current environment

Опис

apcu_enabled(): bool

Returns whether APCu is usable in the current environment.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

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
2 days 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