Skip to content

Commit

Permalink
Fixed comments in exists, return values were incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
gigq committed Aug 16, 2011
1 parent 6c3ec9f commit 0aab8cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/main/java/redis/clients/jedis/BinaryJedis.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ public String quit() {
}

/**
* 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)
Expand Down Expand Up @@ -3007,4 +3007,4 @@ public void psubscribe(BinaryJedisPubSub jedisPubSub, byte[]... patterns) {
public Long getDB() {
return client.getDB();
}
}
}
4 changes: 2 additions & 2 deletions src/main/java/redis/clients/jedis/Jedis.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ public String quit() {

/**
* 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)
*
Expand Down

0 comments on commit 0aab8cb

Please sign in to comment.