public function xtestXcacheDecr()
{
$ready = $this->_prepareXcache();
if (!$ready) {
return false;
}
$frontCache = new Phalcon\Cache\Frontend\Output(array('lifetime' => 20));
$cache = new Phalcon\Cache\Backend\Xcache($frontCache);
$cache->delete('foo');
$cache->save('foo', 20);
$newValue = $cache->decrement('foo');
$this->assertEquals('19', $newValue);
$newValue = $cache->decrement('foo');
$this->assertEquals('18', $newValue);
$newValue = $cache->decrement('foo', 4);
$this->assertEquals('14', $newValue);
}