bigcargo 0.2.6

  • Installing
  • Versions
  • 0


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

Alternatively, your editor might support pub 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...

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

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Analysis issues and suggestions

Fix dependencies in pubspec.yaml.

Running pub upgrade failed with the following output:

ERR: The current Dart SDK version is 2.1.0.
 Because bigcargo depends on cargo >=0.1.0 which requires SDK version <2.0.0, version solving failed.

Health suggestions

Format lib/bigcargo.dart.

Run dartfmt to format lib/bigcargo.dart.

Format lib/src/cargo.dart.

Run dartfmt to format lib/src/cargo.dart.

Format lib/src/cargo_mode.dart.

Run dartfmt to format lib/src/cargo_mode.dart.

Fix additional 3 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/memory_impl.dart (Run dartfmt to format lib/src/memory_impl.dart.)
  • lib/src/mongo_impl.dart (Run dartfmt to format lib/src/mongo_impl.dart.)
  • lib/src/redis_impl.dart (Run dartfmt to format lib/src/redis_impl.dart.)

Maintenance issues and suggestions

Add SDK constraint in pubspec.yaml. (-50 points)

For information about setting SDK constraint, please see

Fix platform conflicts. (-20 points)

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.

Running dartdoc failed. (-10 points)

Make sure dartdoc runs without any issues.

Package is too old. (-100 points)

The package was released more than two years ago.

The description is too short. (-20 points)

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

Maintain an example. (-10 points)

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.