dcache_flutter 1.1.2 dcache_flutter: ^1.1.2 copied to clipboard
Dcache_flutter is a library for Dio. Dcache_flutter uses sqflite as disk cache and we consider that memery cache is unnecessary. It is used in our product. It is fully tested and stable. Maybe it's us [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add dcache_flutter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
dcache_flutter: ^1.1.2
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dcache_flutter/dcache.dart';
import 'package:dcache_flutter/dcache_encoder.dart';
import 'package:dcache_flutter/dcache_options.dart';
import 'package:dcache_flutter/dcache_storage.dart';