cache_provider 1.0.1 copy "cache_provider: ^1.0.1" to clipboard
cache_provider: ^1.0.1 copied to clipboard

cache_provider provides the cache abstract class and provides an in-memory cache implementation and a persistent cache implementation for the file system based on this abstract class.

0
likes
140/ 160
pub points
122
downloads

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

Failed report section
Follow Dart file conventions
20 / 30trigger folding of the section

Failed check 0/10 points: Provide a valid pubspec.yaml

The package description is too long.

Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.

Repository URL doesn't exist.

At the time of the analysis https://github.com/bachue/dart-cache-provider.git was unreachable. Make sure that the website is reachable via HEAD requests.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: Apache-2.0.

Partially passed report section
Provide documentation
10 / 20trigger folding of the section

Partially passed check 0/10 points: 20% or more of the public API has dartdoc comments

2 out of 23 API elements (8.7 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: cache_provider.CacheEntry, cache_provider.CacheEntry.CacheEntry.new, cache_provider.CacheEntry.createdAt, cache_provider.CacheEntry.data, cache_provider.CacheEntry.isValid.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:cache_provider/cache_provider.dart that imports:
  • package:cache_provider/src/cache_provider_base.dart that imports:
  • dart:io

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:cache_provider/cache_provider.dart that imports:
  • package:cache_provider/src/cache_provider_base.dart that imports:
  • dart:io

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

Passed report section
Pass static analysis
50 / 50trigger folding of the section

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

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

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

Package Constraint Compatible Latest Notes
mutex ^3.1.0 3.1.0 3.1.0
singleflight ^1.0.2 1.0.2 1.0.2

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

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.20, Dart 3.7.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
Jul 8Aug 5Sep 2Sep 30Oct 28Nov 25Dec 23Jan 20Feb 17Mar 17050100150200250300350400>=1.0.0-0 <2.0.0
0
likes
140
points
122
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.23 - 2025.04.07

cache_provider provides the cache abstract class and provides an in-memory cache implementation and a persistent cache implementation for the file system based on this abstract class.

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

mutex, singleflight

More

Packages that depend on cache_provider