Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Node is your mansion, Alfred is your butler. Node.js key-value store
JavaScript
tree: e2666e2795

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
benchmarks
dist/bplustree
docs/web
lib/alfred
test
tools
.npmignore
LICENSE
Makefile
README.markdown
TODO
package.json

README.markdown

Alfred is a fast in-process key-value store for node.js.

Alfred supports:

  • multiple key-value maps in one database
  • atomic operations on one record
  • finder streams
  • activity streams
  • append-only files
  • compactation
  • buffered and unbuffered writes
  • in-memory indexes
  • sorting
  • replication
  • integrity check

More...

Install via npm:

$ npm install alfred

Example:

var Alfred = require('alfred');
// Open database
Alfred.open('path/to/db', function(err, db) {
  if (err) { throw err; }
  // find and log all users with age > 25 and <= 40
  db.users.find({age: {$gt : 25, $lte: 40}}) (function(err, user) {
    if (err) { throw err; }
    console.log(user);
  });
});

Read more about it

Something went wrong with that request. Please try again.