in_app_cache 1.0.0 copy "in_app_cache: ^1.0.0" to clipboard
in_app_cache: ^1.0.0 copied to clipboard

A globally shared cache for storing and reusing logical data or objects by type and key.

Cache #

A globally shared cache for storing and reusing logical data or objects by type and key.

Example #

import 'package:in_app_cache/in_app_cache.dart';

void main() async {
  Cache.put("user", () {
    return {"name": "Json"};
  });
  print(Cache.get("user"));
  await Cache.putAsync("user2", () async {
    return {"name": "Future Json"};
  });
  print(Cache.get("user2"));
}
1
likes
160
points
6
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A globally shared cache for storing and reusing logical data or objects by type and key.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on in_app_cache