We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How to use memcached in phalcon

How to use memcached in phalcon, Fatal error: Class 'Phalcon\Cache\Backend\Libmemcached' not found



4.3k

there is no 'Phalcon\Cache\Backend\Libmemecached' Class, just a 'Phalcon\Cache\Backend\Memche' version 1.2.6



5.0k
Accepted
answer

Actually there is Phalcon\Cache\Backend\Libmemcached but it's only available from version 1.3.0. You can use 1.3.1 by building the extension manually:

git clone https://github.com/phalcon/cphalcon.git
cd cphalcon
git checkout 1.3.1
cd build
sudo ./install

don't forget to update your devtools too.