You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i see
cause memcache.cpp line 366 if _, err := fmt.Fprintf(rw, "gets %s\r\n", strings.Join(keys, " ")); err != nil {
not "gets" command, it should be "get %s..."
for memcached version: 1.5.1
thx, Pro. Brad
memcached version: 1.5.1
code:
// Set
foo := &memcache.Item{Key: "home", Value: []byte("fooval")}
err := mc.Add(foo) // work 0k here
if err != nil {
fmt.Println("Set failed once", err.Error())
}
err = mc.Add(foo) // work 0k here
if err != nil {
fmt.Println("Set failed secondly", err.Error())
}
// Get
it, err := mc.Get("home")
if err != nil {
fmt.Println("Get failed", err.Error()) // failed here
} else {
if string(it.Key) == "foo" {
fmt.Println("Add value is ", string(it.Value))
} else {
fmt.Println("Get failed")
}
}
The text was updated successfully, but these errors were encountered: