$all =
[];
if ($mode == Zend_Cache::CLEANING_MODE_ALL
) { return $this->_redis->
flushDb();
} if ($mode == Zend_Cache::CLEANING_MODE_OLD
) { return true;
} /* Redis takes care of expire */
if ($mode == Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG &&
$tags && (is_string($tags) ||
count($tags))) { return $this->
removeTag($tags);
} if ($mode == Zend_Cache::CLEANING_MODE_MATCHING_TAG &&
$tags && (is_string($tags) ||
count($tags) == 1
)) { return $this->
removeTag($tags);
} if ($mode == Zend_Cache::CLEANING_MODE_MATCHING_TAG &&
$tags &&
count($tags)) { return $this->
remove($this->
getIdsMatchingTags($tags));
} if ($mode == Zend_Cache::CLEANING_MODE_NOT_MATCHING_TAG
) {