0.0.3 • Published 10 years ago

roshi v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

node-roshi

roshi client for node.js

istalling

  npm install roshi

api

usage

first of all you need to build, and start roshi-server

  var roshi = require('roshi');
  
  var port = 6302;
  var host = "127.0.0.1";
  
  // you can pass port and host variables directly to fabric,
  var client = roshi.createClient(port, host);
  
  // or set directly to client instance
  client.port = port;
  client.host = host;
  // btw, that host/port pair are default one
  
  var now = Date.now();
  
  client.insert("myKey", now, "myValue", function(err){
    // ...
  });
  
  
  // 2nd, and 3rd argument of #select may be offset, and limit values,
  // which you can set as default:
  client.offset = 0;
  client.limit  = 1;
  client.select("myKey", function(err, values){
    // values = ["myValue"]
  });
  
  client.delete("myKey", now, "myValue", function(err){
    // ...
  });
  

licence

See LICENSE

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago