An abstraction implementation of Cargo on nosql databases
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://127.0.0.1/test" });
storage.start().then((_) {
storage.clear();
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.
Follow us on twitter https://twitter.com/usethedartforce
Follow us on google+
or join our G+ Community