O. BERHILI
Open source2025

smart_cache_plus

Most apps need the same caching rules and end up writing them ad hoc in each repository. smart_cache_plus puts them in one layer that sits in front of the network.

  • Flutter

What it does

  • Automatic caching of Dio or HTTP calls, keyed per request.
  • A time-to-live per entry, with a sensible default.
  • Offline fallback: serve the cached response when the network is gone.
  • Stale-while-revalidate: return cached data immediately and refresh it in the background.
  • Pluggable storage: Hive, Isar, SQLite, secure storage or in-memory.
  • Tags to invalidate a whole API section at once, and a version key to drop everything after an app or API update.
  • A small debug widget to inspect cache size, contents and hit/miss statistics.

Why it exists

How stale data may be and what happens offline are product decisions. They belong in one place where they can be read and changed, not spread across repositories.

Outcome

One configuration object that states an app’s caching policy, instead of the same logic rewritten in every repository.

At a glance

Role
Author
Sector
Open source
Period
2025
Platforms
Flutter
Stack
  • Dart
  • Flutter
  • Dio
  • Hive
  • Isar
Open to roles & contracts

Building something similar?

Open to senior mobile roles and to a small number of Flutter and native iOS contracts. Tell me what you are building and where it stands.