예제 #1
0
 public function testFlush()
 {
     $this->cache->set('test', 'data');
     $this->assertEquals('data', $this->cache->get('test'));
     $this->assertTrue($this->cache->flush());
     $this->assertFalse($this->cache->get('data'));
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function flush()
 {
     $this->hot = [];
     return $this->cache->flush();
 }