Permalink
Browse files

Fixed MSET

  • Loading branch information...
1 parent 392dfd5 commit ce42abaeb78a7038b730f3ec097c9a2bf9ec7877 @tj committed Apr 15, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/commands/string.js
View
@@ -271,15 +271,15 @@ exports.substr = exports.getrange;
*/
exports.mset = function(client, strs){
- var key
- , val
- , len = strs.length;
+ var len = strs.length
+ , key
+ , val;
+
for (var i = 0; i < len; ++i) {
key = string(strs[i++]);
- val = strs[i];
- this.data[key] = val;
- this.keyType(key, 'string');
+ this.db.data[key] = { type: 'string', val: strs[i] };
}
+
client.ok();
};

0 comments on commit ce42aba

Please sign in to comment.