is in my config.php. But is it really right, when the path to APCu.php at my server is in fact /lib/private/Memcache/APCu.php. So, should I replace OC by lib\private?
The answers are YES and NO. Nextcloud publishes access to internal function over an API, therefore it is correct what has written in the documentation. You can double-check that APCu is correctly loaded and enabled by executing the “phpinfo()” command.
A php command need to be executed using a php interpreter Therefore create a php file, enter the php command “<?php phpinfo() ?>” and open it using a web browser.
You will find more detailed information in the php documentation: https://www.php.net/manual/de/function.phpinfo.php