Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributecached

Simplifies and speeds up creation of in-memory and persistent caching mechanisms using code generation.

pub.devRemove
lru_cache

A simple least recently used (LRU) cache implementation in Dart.

pub.devRemove
ScoresHealth58 (best)53
Maintenance1735 (best)
Quality8793 (best)
Popularity56 (best)40
Community80 (best)6
Compatibility85100 (best)
UsageDownloads (30 days)4.7k7.6k (best)
Likes92 (best)11
Pub points130 / 160145 / 160 (best)
GitHub stars60 (best)6
MaintenanceLatest release1.8.1, a year ago0.0.3, 6 months ago (best)
Major versions in 12 months00
Contributors16 (best)1
Publisheriteo.comUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoYes
KindPure DartPure Dart
Code generationYesNo
Direct dependencies71 (best)
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Reduces boilerplate for caching method results.
  • Supports LRU cache algorithm, TTL, and conditional caching via 'where'.
  • Supports persistent storage integrations and cache streams.
  • Thread-safe out of the box using synchronization.
  • Customizable size calculation through a sizeOf method.
Weaknesses
  • Requires running build_runner for code generation.
  • Deprecated persistentStorage parameter requires migrating to newer annotations.
  • In-memory only, data is lost when the app terminates.
  • Limited feature set beyond basic LRU caching.
WarningsNone
  • Unverified publisher
cached vs lru_cache: which Flutter package should you use? | pubscout