项目作者: bradfitz

项目描述 :
去Memcached客户端库#golang
高级语言: Go
项目地址: git://github.com/bradfitz/gomemcache.git
创建时间: 2011-06-28T19:29:12Z
项目社区:https://github.com/bradfitz/gomemcache

开源协议:Apache License 2.0

下载


About

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

Example

Install with:

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

Then use it like:

  1. import (
  2. "github.com/bradfitz/gomemcache/memcache"
  3. )
  4. func main() {
  5. mc := memcache.New("10.0.0.1:11211", "10.0.0.2:11211", "10.0.0.3:11212")
  6. mc.Set(&memcache.Item{Key: "foo", Value: []byte("my value")})
  7. it, err := mc.Get("foo")
  8. ...
  9. }

Full docs, see:

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

Or run:

  1. $ godoc github.com/bradfitz/gomemcache/memcache