From 3004586a5fdc4c4154c0d0197ad12b335d346452 Mon Sep 17 00:00:00 2001 From: "Yohann R. Coppel" Date: Sun, 7 Nov 2010 17:17:47 +0800 Subject: [PATCH] Fix Exists command --- redis.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/redis.go b/redis.go index 780f65b..840ab02 100644 --- a/redis.go +++ b/redis.go @@ -225,8 +225,7 @@ func (client *Client) Auth(password string) os.Error { } func (client *Client) Exists(key string) (bool, os.Error) { - cmd := fmt.Sprintf("EXISTS %s\r\n", key) - res, err := client.sendCommand(cmd, key) + res, err := client.sendCommand("EXISTS", key) if err != nil { return false, err }