commit | 553e0d5136654ba8517a6ad2bd44a3f7a79eb36b | [log] [tgz] |
---|---|---|
author | Brad Fitzpatrick <brad@danga.com> | Mon Sep 04 21:08:40 2023 |
committer | Brad Fitzpatrick <brad@danga.com> | Mon Sep 04 21:08:40 2023 |
tree | 6c9e8f6223062a2f6eba32a27a57735812a16151 | |
parent | d8906edec2461be1c66c84bc7f4adfdd0771dc86 [diff] |
run the three main test types in parallel Saves about six seconds overall, as each test currently involves a three second sleep.
This is a memcache client library for the Go programming language (http://golang.org/).
Install with:
$ go get github.com/bradfitz/gomemcache/memcache
Then use it like:
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")
...
}
See https://pkg.go.dev/github.com/bradfitz/gomemcache/memcache
Or run:
$ godoc github.com/bradfitz/gomemcache/memcache