This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sat Oct 10 23:11:32 -0700 2009 | |
| |
Emakefile | Sat Oct 10 23:12:45 -0700 2009 | |
| |
Makefile | Sun Oct 11 01:13:27 -0700 2009 | |
| |
README.markdown | Sun Oct 11 01:12:05 -0700 2009 | |
| |
include/ | Mon Oct 12 11:40:26 -0700 2009 | |
| |
src/ | Sun Oct 11 01:18:33 -0700 2009 |
README.markdown
ememcached
This is a toolkit for building memcached servers in erlang using the memcached binary protocol.
Quick Start
The basic idea is that there will be one server that understands commands and can issue responses. A sample implementation is provided that uses an in-memory hash table. You can try it out like this:
1> {ok, S} = mc_handler_hashtable:start_link().
{ok,<0.34.0>}
2> mc_tcp_listener:start_link(11213, S).
{ok,<0.36.0>}
Then connect to port 11213 with your favorite memcached binary protocol client.
Slow Start
So you want to write your own backend? No problem. Take a look at
mc_handler_hashtable for an example backend implementing
gen_server that handles a few commands.
Not all of the commands are defined yet, so there aren't hugely comprehensive examples, but hopefully there's enough there to get the idea.
License
MIT or something... I made this for you!







