weak_cache 2.1.3 copy "weak_cache: ^2.1.3" to clipboard
weak_cache: ^2.1.3 copied to clipboard

Weak cache that uses weak references for holding values. Implements full Map interface including keys and values iteration.

2
likes
140/ 160
pub points
17%
popularity

We analyzed this package 2 days ago, and awarded it 140 pub points (of a possible 160):

partial
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

Issue tracker URL doesn't exist.

At the time of the analysis https://github.com/Zekfad/weak_cache/issues was unreachable. Make sure that the website is reachable via HEAD requests.

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: ISC.

failed
Provide documentation
10 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

17 out of 19 API elements (89.5 %) have documentation comments.

Some symbols that are missing documentation: weak_cache.WeakCache.cache, weak_cache.utils.expandoCompatible.

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

OK
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ macOS
  • ✓ Web
partial
Pass static analysis
40 / 50trigger folding of the section

40/50 points: code has no errors, warnings, lints, or formatting issues

Found 21 issues. Showing the first 2:

INFO: Statements in an if should be enclosed in a block.

lib/src/cache_mutex.dart:28:7

   ╷
28 │       onLock?.call();
   │       ^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/cache_mutex.dart

INFO: Statements in an if should be enclosed in a block.

lib/src/cache_mutex.dart:35:7

   ╷
35 │       return;
   │       ^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/cache_mutex.dart

OK
Support up-to-date dependencies
40 / 40trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
meta ^1.9.1 1.15.0 1.15.0

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.7, Dart 3.4.4.

Check the analysis log for details.

2
likes
140
pub points
17%
popularity

Publisher

unverified uploader

Weak cache that uses weak references for holding values. Implements full Map interface including keys and values iteration.

Repository (GitHub)
View/report issues

Topics

#cache #memory

Documentation

API reference

License

ISC (LICENSE)

Dependencies

meta

More

Packages that depend on weak_cache