cache_store 0.6.6

Dart native
Flutter Android iOS

A Dart store for caching instances to various backends (memory, file, ...).

cache_store #

A Dart store for caching instances to various backends (memory, file, ...).

Quickstart #

Future<Cache<int>> update(String key) async {
  await Future.delayed(const Duration(seconds: 2));
  return Cache.fromNow(
    key: key,
    value: 42,
    expiresIn: const Duration(seconds: 1),
  );
}

final store = MemoryCacheStore<int>();

var entry = await store.get("test", ifExpired: update);
0
likes
65
pub points
30%
popularity

A Dart store for caching instances to various backends (memory, file, ...).

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

alois.deniel@gmail.com

License

MIT (LICENSE)

Dependencies

meta

More

Packages that depend on cache_store