/* 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
) { Zend_Cache::
throwException('CLEANING_MODE_NOT_MATCHING_TAG not implemented for Redis cache'
);
} Zend_Cache::
throwException('Invalid mode for clean() method'
);
} /**
* Test if the given cache id is available (and still valid as a cache record)
*
* @param string $id Cache id
* @param bool $doNotTestCacheValidity If set to true, the cache validity won't be tested
*
* @return bool|mixed false (a cache is not available) or "last modified" timestamp (int) of the available cache record
*/