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

Using Phalcon\Cache\Backend\Libmemcached with vanilla PHP Memcached

Hello,

Using Memcached class to collect & process remote data via cron. Using Phalcon later to present this data.

Phalcon can not access data set by the former when configured via the example on https://docs.phalcon.io/en/latest/api/Phalcon_Cache_Backend_Libmemcached.html

\Phalcon\Cache\Frontend\Data serializes data, which obviously doesn't happen in non-Phalcon memcached. To interoperate with keys set outside Phalcon, use \Phalcon\Cache\Frontend\None as your frontend.

Just a heads up for anyone doing similar. Loving Phalcon

-Ty

edited Mar '16

You can use \Phalcon\Cache\Frontend\Json as frontend. Almost every environment can intercact with Json.