コード例 #1
0
ファイル: CacheTest.php プロジェクト: phalcon/cphalcon
 public function testDataFileCacheDecrement()
 {
     $frontCache = new Phalcon\Cache\Frontend\Data();
     $cache = new Phalcon\Cache\Backend\File($frontCache, array('cacheDir' => 'unit-tests/cache/'));
     $cache->delete('foo');
     $cache->save('foo', "100");
     $this->assertEquals(99, $cache->decrement('foo'));
     $this->assertEquals(95, $cache->decrement('foo', 4));
 }