Skip to main content

flutter_lru_cache 1.0.4 copy "flutter_lru_cache: ^1.0.4" to clipboard
flutter_lru_cache: ^1.0.4 copied to clipboard

A simple and efficient LRU (Least Recently Used) cache implementation for Dart and Flutter, providing O(1) read and write operations based on LinkedHashMap.

1.0.4 #

  • Validate capacity in the constructor and throw ArgumentError for non-positive values.
  • Fix equality comparison to distinguish missing keys from null values.
  • Add isNotEmpty getter.
  • Add dartdoc comments for all public APIs.
  • Rename the example file to follow pub layout conventions.
  • Expand test coverage.

1.0.3 #

  • Add remove method.

1.0.2 #

  • Add README and fix the example.

1.0.1 #

  • Minor fixes.

1.0.0 #

  • Initial version.
1
likes
155
points
168
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A simple and efficient LRU (Least Recently Used) cache implementation for Dart and Flutter, providing O(1) read and write operations based on LinkedHashMap.

Repository (GitHub)
View/report issues

Topics

#cache #lru

License

MIT (license)

More

Packages that depend on flutter_lru_cache