create static method

Future<DataCacheManager> create({
  1. bool useDatabase = true,
})

Factory constructor to create a DataCacheManager

Implementation

static Future<DataCacheManager> create({bool useDatabase = true}) async {
  // Initialize the data cache
  await setupDataCacheX(adapterType: CacheAdapterType.memory);
  final cache = getIt<DataCacheX>();
  return DataCacheManager(cache);
}