• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

memcache/H08-Feb-2017-

.gitignoreH A D08-Feb-201712

LICENSEH A D08-Feb-201711.1 KiB

README.mdH A D08-Feb-2017775

README.md

1## About
2
3This is a memcache client library for the Go programming language
4(http://golang.org/).
5
6## Installing
7
8### Using *go get*
9
10    $ go get github.com/bradfitz/gomemcache/memcache
11
12After this command *gomemcache* is ready to use. Its source will be in:
13
14    $GOPATH/src/github.com/bradfitz/gomemcache/memcache
15
16## Example
17
18    import (
19            "github.com/bradfitz/gomemcache/memcache"
20    )
21
22    func main() {
23         mc := memcache.New("10.0.0.1:11211", "10.0.0.2:11211", "10.0.0.3:11212")
24         mc.Set(&memcache.Item{Key: "foo", Value: []byte("my value")})
25
26         it, err := mc.Get("foo")
27         ...
28    }
29
30## Full docs, see:
31
32See https://godoc.org/github.com/bradfitz/gomemcache/memcache
33
34Or run:
35
36    $ godoc github.com/bradfitz/gomemcache/memcache
37
38