clear method
清空所有缓存
Implementation
Future<void> clear() async {
for (final key in _keysIndex.toList()) {
await CacheServiceCore.remove(_itemKey(key));
}
_keysIndex.clear();
await _saveIndex();
}
清空所有缓存
Future<void> clear() async {
for (final key in _keysIndex.toList()) {
await CacheServiceCore.remove(_itemKey(key));
}
_keysIndex.clear();
await _saveIndex();
}