Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bradfitz/gomemcache
Go Memcached client library #golang
https://github.com/bradfitz/gomemcache
golang memcache memcached-clients
Last synced: 26 days ago
JSON representation
Go Memcached client library #golang
- Host: GitHub
- URL: https://github.com/bradfitz/gomemcache
- Owner: bradfitz
- License: apache-2.0
- Created: 2011-06-28T19:29:12.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2024-04-06T15:23:34.000Z (7 months ago)
- Last Synced: 2024-04-10T00:12:50.767Z (7 months ago)
- Topics: golang, memcache, memcached-clients
- Language: Go
- Homepage:
- Size: 110 KB
- Stars: 1,692
- Watchers: 60
- Forks: 450
- Open Issues: 48
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
- go-awesome - gomemcache - memcache client (Open source library / Cache)
- awesome-go-extra - gomemcache - 06-28T19:29:12Z|2022-08-19T14:21:25Z| (Generators / NoSQL Database Drivers)
README
## About
This is a memcache client library for the Go programming language
(http://golang.org/).## Example
Install with:
```shell
$ go get github.com/bradfitz/gomemcache/memcache
```Then use it like:
```go
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:
```shell
$ godoc github.com/bradfitz/gomemcache/memcache
```