data_cache 0.0.1+1 data_cache: ^0.0.1+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));