hive_cache 0.1.3 copy "hive_cache: ^0.1.3" to clipboard
hive_cache: ^0.1.3 copied to clipboard

discontinued
outdated

A persistent cache that uses hive.

example/lib/main.dart

import 'package:hive/hive.dart';
import 'package:hive_cache/hive_cache.dart';

void main() async {
  await Hive.init('.');
  final cache = HiveCache();
  await cache.initialize();
  await cache.setRootKeys(['fruits', 'nuts']);
  await cache.put('apple', 'fruits', 2);
  await cache.put('other', 'fruits', 3);
  await cache.put('some', 'fruits', 'string');
  print(await cache.getChildrenOfType<int>('fruits'));
  print(await cache.getChildrenOfType<String>('fruits'));
}
13
likes
30
pub points
28%
popularity

Publisher

unverified uploader

A persistent cache that uses hive.

Repository (GitHub)
View/report issues

License

GPL-3.0 (LICENSE)

Dependencies

hive

More

Packages that depend on hive_cache