lib/command/hash.js
function hgetall(key, req) {
  var val = this.getKey(key, req)
    , list = [];

  if(!val) return list;
  val.getKeys().forEach(function(k) {
    list.push(k, '' + val.getKey(k));
  });
  return list;
}
function hgetall(key, req) {
  var val = this.getKey(key, req)
    , list = [];

  if(!val) return list;
  val.getKeys().forEach(function(k) {
    list.push(k, '' + val.getKey(k));
  });
  return list;
}
function hgetall ( key , req ) { var val = this . getKey ( key , req ) , list = [ ] ; if ( ! val ) return list ; val . getKeys ( ) . forEach ( function ( k ) { list . push ( k , '' + val . getKey ( k ) ) ; } ) ; return list ; }
Get all the fields and values in a hash.
Get all the fields and values in a hash .