gosexy / redis

Redis client for Go that maps the full redis command list into equivalent Go functions.
MIT License
167 stars 44 forks source link

SetEx bug:resp: Unsupported conversion: status to int #34

Closed AlexLuya closed 9 years ago

AlexLuya commented 9 years ago
package main

import (
  "fmt"
  "menteslibres.net/gosexy/redis"
)

func main() {
  var rs *redis.Client = redis.New()

  if err := rs.Connect("127.0.0.1", 6379);err != nil {
    fmt.Printf("Connect failed: %s\n", err.Error())
  }

  if  _, err := rs.Set("key","value");err != nil {
    fmt.Printf("Set failed: %s\n", err.Error())
  } 

  if  _, err := rs.SetEx("key",int64(1800),"value");err != nil {
    fmt.Printf("SetEx failed: %s\n", err.Error())
  } 
}
xiam commented 9 years ago

The SetEx command expected a wrong return value but now it's fixed.

Thanks Alex.