quick_cache_flutter 1.0.1 copy "quick_cache_flutter: ^1.0.1" to clipboard
quick_cache_flutter: ^1.0.1 copied to clipboard

outdated

Manage your cache securely with a single line of code , without sacrificing performance.

πŸš€ 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());
}

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));

Additional information #

Feedbacks, issues, contributions and suggestions are more than welcomed! 😁

Connect with me #

πŸ‘‰ LinkedIn

πŸ‘‰ X (twitter)

8
likes
0
points
1
downloads

Publisher

verified publisherappflo.dev

Weekly Downloads

Manage your cache securely with a single line of code , without sacrificing performance.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_secure_storage, hive, hive_flutter, path_provider

More

Packages that depend on quick_cache_flutter