clear() public méthode

public clear ( )
 public function testPoolClear()
 {
     $pool = new Pool();
     $pool->setDriver(new DriverExceptionStub());
     $item = $pool->getItem('test');
     $this->assertFalse($item->isDisabled());
     $this->assertFalse($pool->clear());
     $item = $pool->getItem('test');
     $this->assertTrue($item->isDisabled(), 'Is disabled after exception is thrown in driver');
     $this->assertFalse($pool->clear());
 }
Exemple #2
0
 /**
  * Removes all values from the cache.
  */
 public function flush()
 {
     return $this->pool->clear();
 }
Exemple #3
0
 public function clearCache()
 {
     $this->cachePool->clear();
 }