A high performance key/value store for the browser modeled after Redis.
If you like living on the bleeding edge, grab the latest build from GitHub.
curl https://raw.github.com/matthewp/gazel/master/build/gazel.min.js > gazel.min.js
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;
});
Get the value of a key.
Set the value of a key.
Delete a key, or series of keys.
Increment a key by 1. They key's value must be an integer. If the key does not exist, it will be created and assigned the value of 1.
Increment a key by a given increment. They key's value must be an integer. If the key does not exist, it will be created and assigned the value of increment.
Decrement a key by a value of 1. The key's value must be an integer. If the key does not exist, it will be created with a value of -1.
Decrement a key by a given decrement. The key's value must be an integer. If the key does not exist, it will be created with a value of decrement.
Initiate the start of a chaining operation.
Execute a chain of commands.
Abort a transaction in process.