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