vault_cache 0.1.2
vault_cache: ^0.1.2 copied to clipboard
A pure Dart cache library with multi-layer storage, stale-while-revalidate, tag-based invalidation, and swappable storage adapters. Zero Flutter dependencies.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add vault_cacheWith Flutter:
$ flutter pub add vault_cacheThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
vault_cache: ^0.1.2Alternatively, 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:vault_cache/vault_cache.dart';