Last updated:
0 purchases
quick cache flutter
๐ Quick Cache Flutter #
Manage your cache securely with a single line of code , without sacrificing performance.
Features #
โก Fast - uses Hive underneath for peak performance.
๐ Secure - Encrypts everything you save.
โฒ๏ธ Expiry Duration - You can provide stale period to each key.
๐ Easy to use - Single line read write.
Getting started #
You have to initialized QuickCaheFlutter before runApp(Widget) (Call it after WidgetsFlutterBinding.ensureInitialized()):
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await QuickCacheFlutter.instance.init();
runApp(const MyApp());
}
copied to clipboard
Usage #
๐ QuickCacheFlutter.instance.readCache - Reads the value for given key
โ๏ธ QuickCacheFlutter.instance.setCache - Save a single key value in database.
๐งน QuickCacheFlutter.instance.removeAllCache - Clear all cache from database.
๐๏ธ QuickCacheFlutter.instance.deleteValue -Deletes a sigle value.
if expiryDuration is not provided or set to null then the value will persist for app lifetime or till it is manually deleted.
QuickCacheFlutter.instance.setCache(
key: 'key',
value: value,
expiryDuration: const Duration(seconds: 20));
copied to clipboard
Additional information #
Feedbacks, issues, contributions and suggestions are more than welcomed! ๐
Connect with me #
๐ LinkedIn
๐ X (twitter)
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.