clear() public method

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());
 }
Beispiel #2
0
 /**
  * Removes all values from the cache.
  */
 public function flush()
 {
     return $this->pool->clear();
 }
Beispiel #3
0
 public function clearCache()
 {
     $this->cachePool->clear();
 }