Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ldarren/node-riak-client

lightweight riak client for node.js
https://github.com/ldarren/node-riak-client

Last synced: about 2 months ago
JSON representation

lightweight riak client for node.js

Awesome Lists containing this project

README

        

node-riak-client
================

A lightweight riak client for node.js

installation
============
npm install node-riak-client

configuration
=============
```javascript
var riak = require('node-riak-client');
riak.configure();
```

Get
===
```javascript
riak.get(CLIENT_ID, BUCKET, KEY, function(err, xhr){
});

```

Put
===
```javascript
riak.put(CLIENT_ID, BUCKET, KEY, OPTION, function(err, xhr){
});

```

Delete
======
```javascript
riak.put(CLIENT_ID, BUCKET, KEY, OPTION, function(err, xhr){
});

```

Map Reduce
==========
```javascript
riak.query(CLIENT_ID).add(PHASE, TASK).add(PHASE, TASK).exec(function(err, xhr){
});
```