public String set(String key, String value, String nxxx, String expx, int time) {
this.checkIsInMultiOrPipeline();
this.client.set(key, value, nxxx, expx, time);
return this.client.getStatusCodeReply();
}
NX是不存在时才set
XX是存在时才set
EX是秒
PX是毫秒