Fixed comments in exists, return values were incorrect

This commit is contained in:
Justin Sanders
2011-08-16 11:15:07 -04:00
parent 6c3ec9fc14
commit 0aab8cb63b
2 changed files with 5 additions and 5 deletions

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)
*