public function testCleanByTag() { $item = new CacheableData('key', null, 213); $this->adapter->set($item); $this->assertEquals(213, $this->adapter->get($item)); $this->manager->addKeyToTag('version', 213, 'key'); $this->manager->cleanByTag('version', 123); $this->assertEquals(213, $this->adapter->get($item)); $this->manager->cleanByTag('version', 213); $this->assertFalse($this->adapter->get($item)); }
/** * @param string $tag * @param string $value */ public function cleanTag($tag, $value) { $this->tagManager->cleanByTag($tag, $value); }