resetIsDaemonRunningCache static method

void resetIsDaemonRunningCache([
  1. DockerHost? dockerHost
])

Resets the cache for isDaemonRunning.

  • if dockerHost is provided it will reset the cached result only for dockerHost.

Implementation

static void resetIsDaemonRunningCache([DockerHost? dockerHost]) async {
  if (dockerHost != null) {
    _daemonRunning.remove(dockerHost);
  } else {
    _daemonRunning.clear();
  }
}