init method

Future init()

Implementation

Future init() async {
  await _storage.init();

  if (cacheOptions.resetOnRestart) {
    await _storage.clear();
  } else {
    await _clearExpiredCacheData();
  }

  if (loggingOptions.logCacheStorage) {
    await _storage.log();
  }
}