This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
forgejo/vendor/github.com/couchbase/gomemcached
2021-02-28 18:08:33 -05:00
..
client go1.16 (#14783) 2021-02-28 18:08:33 -05:00
.gitignore
flexibleFraming.go go1.16 (#14783) 2021-02-28 18:08:33 -05:00
go.mod
LICENSE
mc_constants.go
mc_req.go go1.16 (#14783) 2021-02-28 18:08:33 -05:00
mc_res.go
README.markdown
tap.go

gomemcached

This is a memcached binary protocol toolkit in go.

It provides client and server functionality as well as a little sample server showing how I might make a server if I valued purity over performance.

Server Design

overview

The basic design can be seen in gocache. A storage server is run as a goroutine that receives a MCRequest on a channel, and then issues an MCResponse to a channel contained within the request.

Each connection is a separate goroutine, of course, and is responsible for all IO for that connection until the connection drops or the dataServer decides it's stupid and sends a fatal response back over the channel.

There is currently no work at all in making the thing perform (there are specific areas I know need work). This is just my attempt to learn the language somewhat.