lib/command/hash.js
function hdel(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)
    , deleted = 0
    , i;

  // nothing at key
  if(!val) return 0;

  for(i = 0;i < args.length;i++) {
    deleted += val.delKey(args[i]);
  }

  if(val.hlen() === 0) {
    this.delKey(key, req);
  }

  return deleted;
}
function hdel(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)
    , deleted = 0
    , i;

  // nothing at key
  if(!val) return 0;

  for(i = 0;i < args.length;i++) {
    deleted += val.delKey(args[i]);
  }

  if(val.hlen() === 0) {
    this.delKey(key, req);
  }

  return deleted;
}
function hdel ( 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 ) , deleted = 0 , i ; // nothing at key if ( ! val ) return 0 ; for ( i = 0 ; i < args . length ; i ++ ) { deleted += val . delKey ( args [ i ] ) ; } if ( val . hlen ( ) === 0 ) { this . delKey ( key , req ) ; } return deleted ; }
Delete one or more hash fields.
Delete one or more hash fields .