diff --git a/src/main/java/redis/clients/jedis/BinaryJedis.java b/src/main/java/redis/clients/jedis/BinaryJedis.java index 6b6c626f05..48f76dbbb2 100644 --- a/src/main/java/redis/clients/jedis/BinaryJedis.java +++ b/src/main/java/redis/clients/jedis/BinaryJedis.java @@ -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) @@ -3007,4 +3007,4 @@ public void psubscribe(BinaryJedisPubSub jedisPubSub, byte[]... patterns) { public Long getDB() { return client.getDB(); } -} \ No newline at end of file +} diff --git a/src/main/java/redis/clients/jedis/Jedis.java b/src/main/java/redis/clients/jedis/Jedis.java index 497277db90..936ee4f455 100644 --- a/src/main/java/redis/clients/jedis/Jedis.java +++ b/src/main/java/redis/clients/jedis/Jedis.java @@ -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) *