Clone this repo:

Branches

  1. 5f7a7d8 memcache: add Client.Close method by Brad Fitzpatrick · 4 months ago master
  2. 62deef7 Update README.md by Friedrich42 · 7 months ago
  3. f7880d5 feat: add support for append/prepend by Justin Vanderhooft · 7 months ago
  4. fb4bf63 delete an unused type by Saimon Shaplygin · 1 year, 5 months ago
  5. 1e3230f Convert to string using rune() (#123) by Robert-André Mauchin · 1 year, 5 months ago

About

This is a memcache client library for the Go programming language (http://golang.org/).

Installing

Using go get

$ go get github.com/bradfitz/gomemcache/memcache

After this command gomemcache is ready to use. Its source will be in:

$GOPATH/src/github.com/bradfitz/gomemcache/memcache

Example

import (
        "github.com/bradfitz/gomemcache/memcache"
)

func main() {
     mc := memcache.New("10.0.0.1:11211", "10.0.0.2:11211", "10.0.0.3:11212")
     mc.Set(&memcache.Item{Key: "foo", Value: []byte("my value")})

     it, err := mc.Get("foo")
     ...
}

Full docs, see:

See https://pkg.go.dev/github.com/bradfitz/gomemcache/memcache

Or run:

$ godoc github.com/bradfitz/gomemcache/memcache