offline_cache_helper 0.0.1 copy "offline_cache_helper: ^0.0.1" to clipboard
offline_cache_helper: ^0.0.1 copied to clipboard

A Flutter package to cache API responses locally for offline access, with support for read, write, and refresh operations.

offline_cache_helper

A lightweight and easy-to-use Flutter package for offline caching of data. It provides a simple API to store, retrieve, and manage local data efficiently.

✨ Features

🔹 Store and retrieve offline data with ease.

🔹 Uses local storage for persistence.

🔹 Minimal setup — plug and play.

🔹 Lightweight and developer-friendly API.

Getting started #

Add this to your pubspec.yaml:

dependencies:
  offline_cache_helper: ^0.0.1


import 'package:offline_cache_helper/offline_cache_helper.dart';

void main() async {
  final helper = await OfflineCacheHelper.create(
    storage: 'my_cache', // example
  );

  await helper.save('key', 'value');
  final value = await helper.get('key');

  print(value); // output: value
}
0
likes
130
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to cache API responses locally for offline access, with support for read, write, and refresh operations.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

connectivity_plus, flutter, hive, http, path_provider

More

Packages that depend on offline_cache_helper