Closed AlexLuya closed 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()) } }
The SetEx command expected a wrong return value but now it's fixed.
SetEx
Thanks Alex.