We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

How to use memcached in phalcon

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


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


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.