clearCache method

  1. @visibleForTesting
void clearCache()

Clear every cache and reset iLib to not-ready; loadJSON must run again before reading data. For reclaiming all memory and isolating test state. The asset manifest is kept, as it never changes.

Implementation

@visibleForTesting
void clearCache() {
  _localeDataMap.clear();
  _fileDataCache.clear();
  _lastLoadedLocale = null;
  _iLibPrepared = false;
}