flush() публичный Метод

The flush method will use the EVAL command to flush all entries and tags for this cache in an atomic way.
public flush ( ) : void
Результат void
 /**
  * @test
  */
 public function flushFlushesCache()
 {
     for ($i = 0; $i < 10; $i++) {
         $this->backend->set('entry_' . $i, 'foo', ['tag1']);
     }
     $this->assertTrue($this->backend->has('entry_5'));
     $this->backend->flush();
     $this->assertFalse($this->backend->has('entry_5'));
 }