Skip to content

Commit

Permalink
added list function signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Feb 7, 2012
1 parent d9dcd68 commit 1b87d63
Showing 1 changed file with 103 additions and 0 deletions.
103 changes: 103 additions & 0 deletions lib/eventvat.js
Expand Up @@ -843,6 +843,109 @@
return values;
};

//
// LISTS
// -----
//

//
// Get an element from a list by its index
//
EventVat.prototype.lindex = function(key, index) {
throw new Error('Not implemented.');
};

//
// Insert an element before or after another element in a list
//
EventVat.prototype.linsert = function(key, ba, pivot, value) {
throw new Error('Not implemented.');
};

//
// Get the length of a list
//
EventVat.prototype.llen = function(key) {
throw new Error('Not implemented.');
};

//
// Remove and get the first element in a list
//
EventVat.prototype.lpop = function(key) {
throw new Error('Not implemented.');
};

//
// Prepend one or multiple values to a list
//
EventVat.prototype.lpush = function(key, value /* ... */) {
throw new Error('Not implemented.');
};

//
// Prepend a value to a list, only if the list exists
//
EventVat.prototype.lpushx = function(key, value) {
throw new Error('Not implemented.');
};

//
// Get a range of elements from a list
//
EventVat.prototype.lrange = function(key, start, stop) {
throw new Error('Not implemented.');
};

//
// Remove elements from a list
//
EventVat.prototype.lrem = function(key, count, value) {
throw new Error('Not implemented.');
};

//
// Set the value of an element in a list by its index
//
EventVat.prototype.lset = function(key, index, value) {
throw new Error('Not implemented.');
};

//
// Trim a list to the specified range
//
EventVat.prototype.ltrim = function(key, start, stop) {
throw new Error('Not implemented.');
};

//
// Remove and get the last element in a list
//
EventVat.prototype.rpop = function(key) {
throw new Error('Not implemented.');
};

//
// Remove the last element in a list, append it to another list and return it
//
EventVat.prototype.rpoplpush = function(source, destination) {
throw new Error('Not implemented.');
};

//
// Append one or multiple values to a list
//
EventVat.prototype.rpush = function(key, value /* ... */ ) {
throw new Error('Not implemented.');
};

//
// Append a value to a list, only if the list exists
//
EventVat.prototype.rpushx = function(key, value) {
throw new Error('Not implemented.');
};

//
//
// Non stsandard methods.
Expand Down

0 comments on commit 1b87d63

Please sign in to comment.