quick_cache_flutter

Last updated:

0 purchases

quick_cache_flutter Image
quick_cache_flutter Images
Add to Cart

Description:

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)

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.