public function xtestXcacheIncrement()
{
$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', 1);
$newValue = $cache->increment('foo');
$this->assertEquals('2', $newValue);
$newValue = $cache->increment('foo');
$this->assertEquals('3', $newValue);
$newValue = $cache->increment('foo', 4);
$this->assertEquals('7', $newValue);
}