public
Description: A node.js module for the Tokyo Tyrant database
Homepage:
Clone URL: git://github.com/waveto/node-tyrant.git
name age message
file LICENSE Tue Jul 07 04:15:51 -0700 2009 Renamed README [waveto]
file README Thu Oct 01 08:52:37 -0700 2009 Changed the stream representation from 'raw' to... [Rhys]
file demo.js Thu Oct 01 08:52:37 -0700 2009 Changed the stream representation from 'raw' to... [Rhys]
file simple.js Thu Oct 01 08:52:37 -0700 2009 Changed the stream representation from 'raw' to... [Rhys]
file tyrant.js Mon Oct 05 03:53:31 -0700 2009 genuid() [Rhys]
README
node-tyrant
===========

This is an implementation of the Tokyo Tyrant network protocol for the Node javascript/v8 language.

Update: v0.1.1
node-tyrant has been updated to use the new binary stream representation, and now uses promises for callbacks.

Install Tokyo Cabinet / Tokyo Tyrant, and set up either a b-tree or table database:

For a table database:
ttserver casket.tdb

For a b-tree (key/value) database:
ttserver casket.tcb


Quick Example
------------


var tyrant = require("tyrant.js");

var c = tyrant.connect();
c.addListener("connect", function (){
  c.put('town', 'Bangor');
  c.get('town').addCallback(function(value) {
    puts('Town : '+value);
    c.quit();
  });
});