
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
github.com/memcachier/mc/v3
This is a (pure) Go client for Memcached. It supports the binary Memcached protocol and SASL authentication. It's thread-safe. It allows connections to entire Memcached clusters and supports connection pools, timeouts, and failover.
Module-aware mode:
$ go get github.com/memcachier/mc/v3
Legacy GOPATH mode:
$ go get github.com/memcachier/mc
import "github.com/memcachier/mc/v3"
// Legacy GOPATH mode:
// import "github.com/memcachier/mc"
func main() {
// Error handling omitted for demo
// Only PLAIN SASL auth supported right now
c := mc.NewMC("localhost:11211", "username", "password")
defer c.Quit()
exp := 3600 // 2 hours
cas, err = c.Set("foo", "bar", flags, exp, cas)
if err != nil {
...
}
val, flags, cas, err = c.Get("foo")
if err != nil {
...
}
err = c.Del("foo")
if err != nil {
...
}
}
There is nearly coverage of the Memcached protocol.
The biggest missing protocol feature is support for multi_get
and other
batched operations.
There is also no support for asynchronous IO.
Right now we use a single per-connection mutex and don't support pipe-lining any operations. There is however support for connection pools which should make up for it.
We are happy to receive bug reports, fixes, documentation enhancements, and other improvements.
Please report bugs via the github issue tracker.
Master git repository:
git clone git://github.com/memcachier/mc.git
This library is MIT-licensed.
This library is written and maintained by MemCachier. It was originally written by Blake Mizerany.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.