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

  if(!val) {
    val = new HashMap();
    this.setKey(key, val, undefined, undefined, undefined, req);
  }
  for(i = 0;i < args.length;i+=2) {
    val.setKey(args[i], args[i + 1]);
  }
  return OK;
}
function hmset(key /* field-1, value-1, field-N, value-N, req */) {
  var args = slice.call(arguments, 1)
    , req = typeof args[args.length - 1] === 'object'
        ? args.pop() : null
    , val = this.getKey(key, req)
    , i;

  if(!val) {
    val = new HashMap();
    this.setKey(key, val, undefined, undefined, undefined, req);
  }
  for(i = 0;i < args.length;i+=2) {
    val.setKey(args[i], args[i + 1]);
  }
  return OK;
}
function hmset ( key /* field-1, value-1, field-N, value-N, req */ ) { var args = slice . call ( arguments , 1 ) , req = typeof args [ args . length - 1 ] === 'object' ? args . pop ( ) : null , val = this . getKey ( key , req ) , i ; if ( ! val ) { val = new HashMap ( ) ; this . setKey ( key , val , undefined , undefined , undefined , req ) ; } for ( i = 0 ; i < args . length ; i += 2 ) { val . setKey ( args [ i ] , args [ i + 1 ] ) ; } return OK ; }
Sets the specified fields to their respective values in
the hash stored at key.
Sets the specified fields to their respective values in the hash stored at key .