Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A node.js module for the Tokyo Tyrant database
JavaScript
tag: v0.1.2

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LICENSE
README
demo.js
simple.js
tyrant.js

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();
  });
});





Something went wrong with that request. Please try again.