Skip to content

Commit

Permalink
Fix Exists command
Browse files Browse the repository at this point in the history
  • Loading branch information
yohcop authored and hoisie committed Nov 7, 2010
1 parent 6df6cda commit 3004586
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3004586

Please sign in to comment.