本站源代码
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
Tamal Saha 171b359877 Use gitea forked macaron (#7933) hace 5 años
..
client Use gitea forked macaron (#7933) hace 5 años
.gitignore Use Go1.11 module (#5743) hace 5 años
LICENSE add other session providers (#5963) hace 5 años
README.markdown Use Go1.11 module (#5743) hace 5 años
mc_constants.go Use gitea forked macaron (#7933) hace 5 años
mc_req.go add other session providers (#5963) hace 5 años
mc_res.go add other session providers (#5963) hace 5 años
tap.go add other session providers (#5963) hace 5 años

README.markdown

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.

上海开阖软件有限公司 沪ICP备12045867号-1