获取缓存大小
static Future<int> total() async { try { Directory tempDir = await getTemporaryDirectory(); int total = await _reduce(tempDir); return total; } catch (_) { return 0; } }