Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A node.js module for the Tokyo Tyrant database
tree: e9608f9e3c

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
demo.js
readme.txt
tyrant.js

readme.txt

node-tyrant
===========

Version : 0.1 
rhys@wave.to 6th July 2009

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


Pre-requisits
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");

function onLoad () {
  tyrant.connect();
  tyrant.put('town', 'Bangor');
  tyrant.get('town', function(value, error) {
    puts('Result : '+value);
  });
  tyrant.quit();
}

Run demo.js for a more complete demo



Something went wrong with that request. Please try again.