c语言sscanf函数的用法是什么
286
2022-09-26
jedis set的问题
当使用jedis的set api时,同一个key在被set两次后,通过get得到的还是第一次set的值,查看api说明,原因是参数nxxx的设置问题。set的api说明:
String redis.clients.jedis.Jedis.set(String key, String value, String nxxx, String expx, long time)
Set the string value as value of the key. The string can't be longer than 1073741824 bytes (1 GB).
Parameters:
key :key值value :value值nxxx: NX|XX,NX=Only set the key if it does not already exist;XX=Only set the key if it already exist.expx: EX|PX,expire time units: EX = seconds; PX = millisecondstime: expire time in the units of {@param #expx}
Returns:
Status code reply
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~