multiSet
写同一个hashKey下的多行数据
/**
* Multi Set
* @param {String} tableName
* @param {Object} args
* {Buffer} args.hashKey required
* {Array} args.sortKeyValueArray required
* {'key' : sortKey, 'value' : value}
* {Number} args.timeout(ms) optional
* {Number} args.ttl(s) optional
* @param {Function} callback
* @throws{InvalidParamException} callback is not function
*/
client.multiSet(
tableName,
args,
function(err){
// if set operation succeed, err will be null
// else err will be instance of PException
}
);
- multiSet操作的必填参数为表名,hashKey,sortKey-value对象数组和callback