cleanCache method
Future<void>
cleanCache({
- CachePriority priorityOrBelow = CachePriority.high,
- bool staleOnly = false,
清除所有key的缓存
Implementation
Future<void> cleanCache(
{CachePriority priorityOrBelow = CachePriority.high,
bool staleOnly = false}) async {
await cacheOptions?.store
?.clean(priorityOrBelow: priorityOrBelow, staleOnly: staleOnly);
}