lib/command/zset.js
function zadd(key /* score-1, member-1, score-N, member-N, req */) {
  var args = slice.call(arguments, 1)
    , req = typeof args[args.length-1] === 'object' ? args.pop() : null
    , val = this.getKey(key, req);

  if(val === undefined) {
    val = new SortedSet();
    this.setKey(key, val, undefined, undefined, undefined, req);
  }

  return val.zadd(args);
}
function zadd(key /* score-1, member-1, score-N, member-N, req */) {
  var args = slice.call(arguments, 1)
    , req = typeof args[args.length-1] === 'object' ? args.pop() : null
    , val = this.getKey(key, req);

  if(val === undefined) {
    val = new SortedSet();
    this.setKey(key, val, undefined, undefined, undefined, req);
  }

  return val.zadd(args);
}
function zadd ( key /* score-1, member-1, score-N, member-N, req */ ) { var args = slice . call ( arguments , 1 ) , req = typeof args [ args . length - 1 ] === 'object' ? args . pop ( ) : null , val = this . getKey ( key , req ) ; if ( val === undefined ) { val = new SortedSet ( ) ; this . setKey ( key , val , undefined , undefined , undefined , req ) ; } return val . zadd ( args ) ; }
Adds all the specified members with the specified scores
to the sorted set stored at key.
Adds all the specified members with the specified scores to the sorted set stored at key .