data_cache 0.0.1 copy "data_cache: ^0.0.1" to clipboard
data_cache: ^0.0.1 copied to clipboard

cache data locally.

Features #

store cached varibles

Getting started #

    final cache=cacheManager({c0:[c0.fromMap,(c0 x)=>x.toMap()]});
    await Future.delayed(Duration(milliseconds: 500));
    cache.check();
    expect(cache.get<c0>("id0"), null);
    cache.addOrUpdate<c0>(c0("id0", 1));
    cache.check();
    expect(cache.get<c0>("id0").toString(), c0("id0", 1));

Usage #

Additional information #

0
likes
0
pub points
1%
popularity

Publisher

unverified uploader

cache data locally.

License

unknown (LICENSE)

Dependencies

flutter, shared_preferences

More

Packages that depend on data_cache