hive_universal_cache 0.2.1
hive_universal_cache: ^0.2.1 copied to clipboard
A general framework for caching dart object model in Hive. This package currently support JSON parsable objects and, Hive types.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add hive_universal_cacheWith Flutter:
$ flutter pub add hive_universal_cacheThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
hive_universal_cache: ^0.2.1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:hive_universal_cache/hive_universal_cache.dart';