Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributelru_cache

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

pub.devRemove
stock

Dart package for async data loading, caching, and combining local and network data sources.

pub.devRemove
ScoresHealth53 (best)50
Maintenance35 (best)3
Quality9396 (best)
Popularity4040
Community663 (best)
Compatibility100100
UsageDownloads (30 days)7.6k (best)705
Likes11119 (best)
Pub points145 / 160150 / 160 (best)
GitHub stars685 (best)
MaintenanceLatest release0.0.3, 6 months ago (best)1.1.2, 2 years ago
Major versions in 12 months00
Contributors15 (best)
PublisherUnverifiedxmartlabs.com
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies1 (best)3
LicenseMITAPACHE-2.0
Setup effortLowMedium
JudgementStrengths
  • Thread-safe out of the box using synchronization.
  • Customizable size calculation through a sizeOf method.
  • Combines local and network data sources seamlessly.
  • Catches errors and wraps them into stream responses instead of throwing unhandled exceptions.
  • Provides built-in memory caching via CachedSourceOfTruth for non-stream sources.
Weaknesses
  • In-memory only, data is lost when the app terminates.
  • Limited feature set beyond basic LRU caching.
  • Requires proper setup of custom fetchers, sources of truth, and potential mapping logic.
  • Does not replace a complete state management solution on its own.
Warnings
  • Unverified publisher
None
lru_cache vs stock: which Flutter package should you use? | pubscout