Example #1
0
 /**
  * @group tags
  */
 public function testGetIdsMatchingAnyTag()
 {
     $this->setKeys();
     $ids = $this->cache->getIdsMatchingAnyTags(array('tag_a1', 'tag_a2'));
     sort($ids);
     $this->assertEquals(array('test_aaa', 'test_bbb', 'test_ccc'), $ids);
 }
Example #2
0
 /**
  * Return an array of stored cache ids which match any given tags
  *
  * In case of multiple tags, a logical OR is made between tags
  *
  * @param array $tags array of tags
  * @return array array of matching cache ids (string)
  */
 public function getIdsMatchingAnyTags($tags = array())
 {
     $tags = $this->_tags($tags);
     return parent::getIdsMatchingAnyTags($tags);
 }