Fixed comments in exists, return values were incorrect
This commit is contained in:
@@ -84,8 +84,8 @@ public class BinaryJedis implements BinaryJedisCommands {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test if the specified key exists. The command returns "0" if the key
|
* Test if the specified key exists. The command returns "1" if the key
|
||||||
* exists, otherwise "1" is returned. Note that even keys set with an empty
|
* exists, otherwise "0" is returned. Note that even keys set with an empty
|
||||||
* string as value will return "1".
|
* string as value will return "1".
|
||||||
*
|
*
|
||||||
* Time complexity: O(1)
|
* Time complexity: O(1)
|
||||||
|
|||||||
@@ -77,8 +77,8 @@ public class Jedis extends BinaryJedis implements JedisCommands {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Test if the specified key exists. The command returns "1" if the key
|
* Test if the specified key exists. The command returns "1" if the key
|
||||||
* exists, otherwise "1" is returned. Note that even keys set with an empty
|
* exists, otherwise "0" is returned. Note that even keys set with an empty
|
||||||
* string as value will return "0".
|
* string as value will return "1".
|
||||||
*
|
*
|
||||||
* Time complexity: O(1)
|
* Time complexity: O(1)
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user