added sortedSetRemove to mongo

v1.18.x
Baris Soner Usakli 11 years ago
parent 28c75e09a9
commit 21bbe68c97

@ -247,12 +247,14 @@
value:value
};
data.setName = key
data.setName = key;
module.setObject(key+':'+value, data, callback);
}
module.sortedSetRemove = function(key, value, callback) {
throw new Error('not-implemented');
db.collection('objects').remove({setName:key, value:value}, function(err, result) {
callback(err, result);
});
}
function getSortedSetRange(key, start, stop, sort, callback) {

@ -164,6 +164,13 @@ var DebugRoute = function(app) {
});
}
function sortedSetRemove(callback) {
db.sortedSetRemove('sortedSet2', 12, function(err, data) {
console.log('sortedSetRemove return', data);
callback(err, {'sortedSetRemove': data});
});
}
function getSortedSetRange(callback) {
db.getSortedSetRevRange('sortedSet2', 0, -1, function(err, data) {
console.log('getSortedSetRange return', data);
@ -199,7 +206,9 @@ var DebugRoute = function(app) {
//sortedSetAdd,
getSortedSetRange,
sortedSetAdd,
getSortedSetRange
getSortedSetRange,
sortedSetRemove,
getSortedSetRange,
];

Loading…
Cancel
Save