clearCache method
清除本地DB的相册数据缓存(本函数谨慎使用) 此操作相当于删除表结构,会自动停住当前正在备份的automaticAlbum函数,但不会立即停,等本次备份执行完才会停。 成功:清除成功 失败:报错信息
Implementation
Future<String> clearCache () async {
try {
automaticState = false;
await judgeTableCreate();
await RunDelete('DROP TABLE album');
await RunDelete('DROP TABLE Config');
return "清除成功";
} catch (e) {
return e.toString();
}
}