https://github.com/jleagle/memcache-go
A wrapper for memcache
https://github.com/jleagle/memcache-go
memcache memcached sasl
Last synced: 6 months ago
JSON representation
A wrapper for memcache
- Host: GitHub
- URL: https://github.com/jleagle/memcache-go
- Owner: Jleagle
- Created: 2018-11-21T12:48:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-12T21:39:19.000Z (about 2 years ago)
- Last Synced: 2025-01-20T07:19:18.119Z (about 1 year ago)
- Topics: memcache, memcached, sasl
- Language: Go
- Homepage:
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# memcache

Supports SASL authentication.
```go
func GetData() (data Data, err error) {
client := memcache.NewClient("localhost:11211")
callback := func() (any, error) {
// Calculate data
return Data{Val: 1}, nil
}
data := Data{}
err := client.GetSet("data-key", 10, &data, callback)
if err != nil {
return nil, err
}
return data, err
}
```