Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
memcache/ | H | 13-Sep-2019 | - | |||
.gitignore | H A D | 13-Sep-2019 | 12 | |||
LICENSE | H A D | 13-Sep-2019 | 11.1 KiB | |||
README.md | H A D | 13-Sep-2019 | 775 | |||
go.mod | H A D | 13-Sep-2019 | 47 |
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