bigcargo 0.2.6

  • Installing
  • Versions
  • 20


An abstraction implementation of Cargo on nosql databases

Simple usage

For the moment we have only a MongoDB implementation. Please take a look at the test examples.

Or just look at this.

Cargo storage = new Cargo(MODE: CargoMode.MONGODB, collection: "store", conf: {"address": "mongodb://" });

storage.start().then((_) {
  storage["someValue"] = {"value": "go"};

  storage.getItem("someValue").then((value) {
    // do something with the retrieved value!


We have implemenations for:

  • MongoDB
  • Redis (experimental)


If you found a bug, just create a new issue or even better fork and issue a pull request with you fix.

Join our discussion group

Google group

Social media


Follow us on twitter


Follow us on google+

or join our G+ Community


This file contains highlights of what changes on each version of the cargo package.

Pub version 0.2.6

  • Update to latest Cargo & mongo_dart version

Pub version 0.2.5

  • Update to latest Cargo version
  • Add revert options to export data from MongoDB

Pub version 0.2.4

  • Update to latest Cargo version
  • Add limit options to export data from MongoDB

Pub version 0.2.3+1

  • Fix issues with export function

Pub version 0.2.3

  • Update to latest cargo version 0.6.0
  • Fix params export function for mongoDB

Pub version 0.2.2

  • adapt to cargo 0.5.1, add Map params to export

Pub version 0.2.1

  • fix mongodb issues

Pub version 0.2.0+1

  • fix some small issues with mongodb implementation

Pub version 0.2.0

  • update implementation to Cargo 0.5.0
  • improve redis implementation (still experimental)
  • better use of collections

Pub version 0.1.3

  • adding remove dispatch to bigcargo, so you will receive data change events when something get deleted.

Pub version 0.1.2+4

  • Fixing bug in export method of mongoDB!

Pub version 0.1.2+2 & 0.1.2+3

  • decode value when doing an export()
  • solve issue on dispatching

Pub version 0.1.2+1

  • Improvements to dispatch on setItem, mongo impl

Pub version 0.1.2

  • Implemented export() function for mongoDB

Pub version 0.1.1+1 & 0.1.1+2 & 0.1.1+3

  • make mongodb impl better by fixing 'getItem' issue

Pub version 0.1.1

  • Add redis implementation to the project
  • Adapt implemenations to Future<int> to retrieve the length of the keys into the nosql db

Pub version 0.1.0 & 0.1.0+1

  • Setup of the project
  • Initial implemenation of mongodb

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  bigcargo: "^0.2.6"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

      import 'package:bigcargo/bigcargo.dart';
Version Uploaded Documentation Archive
0.2.6 Aug 7, 2016 Go to the documentation of bigcargo 0.2.6 Download bigcargo 0.2.6 archive
0.2.5 Feb 22, 2015 Go to the documentation of bigcargo 0.2.5 Download bigcargo 0.2.5 archive
0.2.4 Feb 8, 2015 Go to the documentation of bigcargo 0.2.4 Download bigcargo 0.2.4 archive
0.2.3+1 Dec 23, 2014 Go to the documentation of bigcargo 0.2.3+1 Download bigcargo 0.2.3+1 archive
0.2.3 Dec 23, 2014 Go to the documentation of bigcargo 0.2.3 Download bigcargo 0.2.3 archive
0.2.2 Dec 21, 2014 Go to the documentation of bigcargo 0.2.2 Download bigcargo 0.2.2 archive
0.2.0+1 Dec 15, 2014 Go to the documentation of bigcargo 0.2.0+1 Download bigcargo 0.2.0+1 archive
0.2.0 Dec 15, 2014 Go to the documentation of bigcargo 0.2.0 Download bigcargo 0.2.0 archive
0.1.3 Nov 26, 2014 Go to the documentation of bigcargo 0.1.3 Download bigcargo 0.1.3 archive
0.1.2+4 Nov 20, 2014 Go to the documentation of bigcargo 0.1.2+4 Download bigcargo 0.1.2+4 archive

All 19 versions...


We analyzed this package on Jun 12, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.60.0
  • pana: 0.11.3


Describes how popular the package is relative to other packages. [more]
0 / 100
Code health derived from static analysis. [more]
58 / 100
Reflects how tidy and up-to-date the package is. [more]
15 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:bigcargo/bigcargo.dart.


  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 4 errors 13 hints.

    Strong-mode analysis of lib/src/cargo.dart failed with the following error:

    line: 4 col: 45
    The private name _cargoDataChange, defined by CargoDispatch, conflicts with the same name defined by CargoDispatch.

    Strong-mode analysis of lib/src/mongo_impl.dart failed with the following error:

    line: 62 col: 33
    The argument type '(bool) → Future<dynamic>' can't be assigned to the parameter type '(dynamic) → FutureOr<dynamic>'.

    Similar analysis of the following files failed:

    • lib/bigcargo.dart (hint)
    • lib/src/cargo_mode.dart (hint)
    • lib/src/memory_impl.dart (hint)
    • lib/src/redis_impl.dart (hint)
  • Package is getting outdated.

    The package was released 96 weeks ago.

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use bigcargo.dart.


Package Constraint Resolved Available
Direct dependencies
cargo >=0.8.0 <0.9.0 0.8.0
logging >=0.11.0 <0.12.0 0.11.3+1
mongo_dart >=0.2.9 <0.3.0 0.2.10 0.3.1
redis_client >=0.1.13 <0.2.0 0.1.16
Transitive dependencies
bson 0.2.0 0.3.1
charcode 1.1.1
collection 1.14.10
convert 2.0.1
crypto 2.0.3
fixnum 0.10.7
mongo_dart_query 0.2.2 0.3.0
more 1.9.0
typed_data 1.1.5
uuid 0.5.3 1.0.0
Dev dependencies
scheduled_test >=0.11.4 <0.12.0
unittest >=0.11.3 <0.11.4