当键不存在时获取 BinaryJedis 的操作 return 数据
get operation return data for BinaryJedis when key does not exist
我正在浏览 BinaryJedis 和 BinaryJedisCluster 文档 here。对于 get
操作,描述为
"Get the value of the specified key. If the key does not exist the special value 'nil' is returned. If the value stored at key is not a string an error is returned because GET can only handle string values."
对于binary jedis,如果key不存在,返回的byte数组会包含String "nil"的字节表示,还是byte数组为空?从文档看不是很清楚。
如果key不存在,get
同时运行BinaryJedis和BinaryJedisClusterreturns(byte[]) null
.
我正在浏览 BinaryJedis 和 BinaryJedisCluster 文档 here。对于 get
操作,描述为
"Get the value of the specified key. If the key does not exist the special value 'nil' is returned. If the value stored at key is not a string an error is returned because GET can only handle string values."
对于binary jedis,如果key不存在,返回的byte数组会包含String "nil"的字节表示,还是byte数组为空?从文档看不是很清楚。
如果key不存在,get
同时运行BinaryJedis和BinaryJedisClusterreturns(byte[]) null
.