create static method
Creates a HiveRepositoryCacheStorage
with a default Box
named repository-caches
.
Implementation
static Future<HiveRepositoryCacheStorage> create() async {
final box = await Hive.openBox<String>('repository-caches');
return HiveRepositoryCacheStorage(box: box);
}