예제 #1
0
 public function testClear()
 {
     $cache = LocalCache::getInstance();
     $id = uniqid('testApc');
     $data = uniqid('testApc');
     $cache->set($id, $data);
     $cache->clear();
     $dataGet = $cache->get($id);
     $this->assertNull($dataGet);
 }
예제 #2
0
 public function testGetInstance()
 {
     $cache = LocalCache::getInstance();
     $this->assertInstanceOf('\\LocalCache\\LocalCache', $cache);
 }