/** * @group tags */ public function testCleanNotMatchingTag() { $this->setKeys(); $this->cache->clean(Zend_Cache::CLEANING_MODE_NOT_MATCHING_TAG, array('tag_a1')); $ids = $this->cache->getIdsNotMatchingTags(array('tag_a1')); $ids = $this->cache->getIds(); sort($ids); $this->assertEquals(array('test_aaa', 'test_bbb'), $ids); }
/** * Return an array of stored cache ids which don't match given tags * * In case of multiple tags, a logical OR is made between tags * * @param array $tags array of tags * @return array array of not matching cache ids (string) */ public function getIdsNotMatchingTags($tags = array()) { $tags = $this->_tags($tags); return parent::getIdsNotMatchingTags($tags); }