It is very important to note when reading the information supplied by others on this page that there are two *distinct* memcache PHP implementations for the service "memcached".
1) pecl-memcache
2) pecl-memcached
This page is for the first, pecl-memcache.
If you are looking for pecl-memcached information, visit here:
http://www.php.net/manual/en/book.memcached.phpИнсталација
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
Инсталација
Референца за `memcache.installation.php` со подобрена типографија и навигација.
Инсталација
Ова (достапно од PHP 7.2.0) екстензијата не е вклучена со PHP. Информации за инсталирање на оваа PECL екстензија може да се најдат во поглавјето од прирачникот насловено Инсталација на PECL екстензииInformation for installing this PECL extension may be found in the manual chapter titled » https://pecl.php.net/package/memcache.
Забелешка: Можно е да се оневозможи поддршката за memcache сесискиот менаџер. Опцијата 'pecl install' прашува за ова (стандардно е овозможено) меѓутоа кога се компајлира статички во PHP --disable-memcache-session може да се користи опцијата за конфигурација.
Белешки од корисници 2 забелешки
I hope this will help someone,
Context: I wanted to use memcache
like this:
$memcache = new \Memcache();
but composer suggests me to install the extension
"ext-memcache": "*",
but that one didn't want to work, so I installed
sudo apt install php7.4-memcache
sudo apt install php7.4-memcached
and all worked