del

删除单行数据

  1. /**
  2. * Delete value
  3. * @param {String} tableName
  4. * @param {Object} args
  5. * {Buffer} args.hashKey required
  6. * {Buffer} args.sortKey required
  7. * {Number} args.timeout(ms) optional
  8. * @param {Function} callback
  9. * @throws{InvalidParamException} callback is not function
  10. */
  11. client.del(
  12. tableName,
  13. args,
  14. function(err){
  15. // if set operation succeed, err will be null
  16. // else err will be instance of PException
  17. }
  18. );
  • del操作的必填参数有表名,hashKey,sortKey和callback