Today I cloned and installed Phalcon 2.0. The installation wen smoothly but my unit tests start failing. The problem simes to be the Libmemcached backend or Json frontend. On Phalcon 1.3 everything is fine.
This is how I set my backend:
$frontCache = new Json(['lifetime' => 172801]);
$cache = new Libmemcached($frontCache, [
'servers' => [
[
'host' => $this->config->auth->host,
'port' => $this->config->auth->port,
'persistent' => true,
]
],
'client' => [
Memcached::OPT_PREFIX_KEY => $this->config->auth->prefix,
]
]);
I can see values stored in memcache with the good key prefix but I cant get them back.
$this->backend->get($key);
Also on Phalcon 1.3 there was a method $cache->setTrackingKey()
which seems missing in 2.0. I thought 2.0 is backwards compatibile with 1.3. Is it ?