Wednesday, March 28, 2012

Gazel | key/value store for the browser

Gazel | key/value store for the browser: " function demo() {
var client = gazel.createClient();

client.on('error', function(err) {
alert('Oh noes!');
});

client.set('Foo', 'bar', gazel.print);

client.multi()
.set('Fee', 1)
.set('Fi', 2)
.set('Fo', 3)
.set('Fum', 4)
.incrby('Fee', 10)
.get('Fee')
.exec(function(results) {
var fee = results.pop()[0];

document.getElementById('fee').textContent = fee;
});
}
"

'via Blog this'