Adding support for Cache::flush and CacheManager::flushAll. Also making reading version and mode explicitly unsigned (to match writer)