Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
mc
✓ github.com/memcachier/mc
Connects to a memcache server and sets/gets a key.
package main
import (
"fmt"
"github.com/memcachier/mc"
)
func main() {
client := mc.NewMC("localhost:11211", "", "")
err := client.Set(&mc.Item{Key: "foo", Value: []byte("bar")})
if err != nil {
panic(err)
}
item, err := client.Get("foo")
if err != nil {
panic(err)
}
fmt.Printf("Value: %s\n", item.Value)
}
Debug
Known issues
gotchaVersion 2.0.1+incompatible indicates Go module compatibility issuesfixUse go get with -incompatible flag or consider alternative clients
affects: 2.0.1+incompatible
Upgrade
Version history
2.0.1+incompatiblelatest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.