deleteMatchingAllTags() public method

Delete documents by tag Document deletes if it contains all passed tags
public deleteMatchingAllTags ( array $tags )
$tags array
Example #1
0
 public function testDeleteMatchingAllTags()
 {
     $this->cache->setNeverExpired('php', 'PHP: Hypertext Processor', array('language', 'interpretable'))->setNeverExpired('c', 'C', array('language', 'compileable'));
     $this->assertEquals(2, count($this->cache));
     $this->cache->deleteMatchingAllTags(array('compileable', 'language'));
     $this->assertEquals(1, count($this->cache));
     $this->assertTrue($this->cache->has('php'));
 }