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


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

\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


edited Mar '16

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