invalidate static method

Future<void> invalidate(
  1. String key
)

Implementation

static Future<void> invalidate(String key) async {
  _mem.remove(key);
  final p = await SharedPreferences.getInstance();
  await p.remove('ap_cache_$key');
  AutoPilotLogger.logCache('INVALIDATED', key);
}