From 0aab8cb63b85599db1ad76b3b9486fac9980df2d Mon Sep 17 00:00:00 2001 From: Justin Sanders Date: Tue, 16 Aug 2011 11:15:07 -0400 Subject: [PATCH] Fixed comments in exists, return values were incorrect --- src/main/java/redis/clients/jedis/BinaryJedis.java | 6 +++--- src/main/java/redis/clients/jedis/Jedis.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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) *