Jedis set 方法参数的含义

匿名 (未验证) 提交于 2019-12-03 00:22:01

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   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 = milliseconds time expire time in the units of {@param #expx} 

Returns:

Status code reply

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!