Registry / networking / grobie-gomemcache

grobie-gomemcache

JSON →
library0.0.0-20230213081705-239240bbc445gogounverified

A Go client library for interacting with Memcached servers.

go get github.com/grobie/gomemcache
INSTALL
IMPORT
SIG · GROBIE-GOMEMCACHE
G
grobie-gomemcache
networkinggov0.0.0-20230213081705-239240bbc445
harness data pending
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.

memcache
github.com/grobie/gomemcache/memcache

Set and get a key from Memcached.

package main import ( "fmt" "github.com/grobie/gomemcache/memcache" ) func main() { mc := memcache.New("localhost:11211") err := mc.Set(&memcache.Item{Key: "foo", Value: []byte("bar")}) if err != nil { panic(err) } it, err := mc.Get("foo") if err != nil { panic(err) } fmt.Println(string(it.Value)) }
Debug
Known issues
gotchaThe module path is github.com/grobie/gomemcache, but the importable package is under the memcache subdirectory.
fix
Use import path github.com/grobie/gomemcache/memcache.
affects: all
Upgrade
Version history
0.0.0-20230213081705-239240bbc445latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
grobie-gomemcache — go get grobie-gomemcache · libregistry