Example #1
0
 /**
  * Return an array of stored cache ids which don't match given tags
  *
  * In case of multiple tags, a negated logical AND is made between tags
  *
  * @param array $tags array of tags
  * @return array array of not matching cache ids (string)
  */
 public function getIdsNotMatchingTags($tags = array())
 {
     if (!$this->_notMatchingTags) {
         Zend_Cache::throwException("notMatchingTags is currently disabled.");
     }
     if ($tags) {
         return (array) $this->_redis->sDiff(self::SET_IDS, $this->_preprocessTagIds($tags));
     }
     return (array) $this->_redis->sMembers(self::SET_IDS);
 }