lib/command/hash.js
function hmget(key /* field-1, field-N, req */) {
  var args = slice.call(arguments, 1)
    , req = typeof args[args.length - 1] === 'object'
        ? args.pop() : null
    , val = this.getKey(key, req)
    , value
    , list = []
    , i;
  for(i = 0;i < args.length;i++) {
    if(!val) {
      list.push(null);
      continue;
    }
    value = val.getKey(args[i])
    list.push(value !== undefined ? value : null);
  }
  return list;
}
function hmget(key /* field-1, field-N, req */) {
  var args = slice.call(arguments, 1)
    , req = typeof args[args.length - 1] === 'object'
        ? args.pop() : null
    , val = this.getKey(key, req)
    , value
    , list = []
    , i;
  for(i = 0;i < args.length;i++) {
    if(!val) {
      list.push(null);
      continue;
    }
    value = val.getKey(args[i])
    list.push(value !== undefined ? value : null);
  }
  return list;
}
function hmget ( key /* field-1, field-N, req */ ) { var args = slice . call ( arguments , 1 ) , req = typeof args [ args . length - 1 ] === 'object' ? args . pop ( ) : null , val = this . getKey ( key , req ) , value , list = [ ] , i ; for ( i = 0 ; i < args . length ; i ++ ) { if ( ! val ) { list . push ( null ) ; continue ; } value = val . getKey ( args [ i ] ) list . push ( value !== undefined ? value : null ) ; } return list ; }
Returns the values associated with the specified fields in
the hash stored at key.
Returns the values associated with the specified fields in the hash stored at key .