Merge pull request #193 from gigq/master

Comments on exists were incorrect
This commit is contained in:
Jonathan Leibiusky
2011-08-31 05:22:28 -07:00
2 changed files with 5 additions and 5 deletions

View File

@@ -84,8 +84,8 @@ public class BinaryJedis implements BinaryJedisCommands {
}
/**
* Test if the specified key exists. The command returns "0" if the key
* exists, otherwise "1" is returned. Note that even keys set with an empty
* Test if the specified key exists. The command returns "1" if the key
* exists, otherwise "0" is returned. Note that even keys set with an empty
* string as value will return "1".
*
* Time complexity: O(1)
@@ -3007,4 +3007,4 @@ public class BinaryJedis implements BinaryJedisCommands {
public Long getDB() {
return client.getDB();
}
}
}

View File

@@ -77,8 +77,8 @@ public class Jedis extends BinaryJedis implements JedisCommands {
/**
* 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
* string as value will return "0".
* exists, otherwise "0" is returned. Note that even keys set with an empty
* string as value will return "1".
*
* Time complexity: O(1)
*