lib/command/database/string/setbit.js
function validate(cmd, args, info) {
  AbstractCommand.prototype.validate.apply(this, arguments);
  var value = parseInt('' + args[2]);
  if(value !== 0 && value !== 1) throw InvalidBit;
  args[2] = value;
}
function validate(cmd, args, info) {
  AbstractCommand.prototype.validate.apply(this, arguments);
  var value = parseInt('' + args[2]);
  if(value !== 0 && value !== 1) throw InvalidBit;
  args[2] = value;
}
function validate ( cmd , args , info ) { AbstractCommand . prototype . validate . apply ( this , arguments ) ; var value = parseInt ( '' + args [ 2 ] ) ; if ( value !== 0 && value !== 1 ) throw InvalidBit ; args [ 2 ] = value ; }
Validate the SETBIT command.
Validate the SETBIT command .