clearCache static method

void clearCache()

Clears all cached formatters.

This method is useful for long-running applications where many unique patterns may have been created over time and are no longer needed.

After calling this method, any subsequent calls to EasyDateTimeFormatter will recompile the pattern.

// Clear all cached formatters
EasyDateTimeFormatter.clearCache();

Implementation

static void clearCache() {
  _availablePatterns.clear();
}