Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dustin/ememcached
A framework for building erlang memcached servers.
https://github.com/dustin/ememcached
Last synced: about 2 months ago
JSON representation
A framework for building erlang memcached servers.
- Host: GitHub
- URL: https://github.com/dustin/ememcached
- Owner: dustin
- Created: 2009-10-11T08:19:01.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2010-01-04T07:06:44.000Z (almost 15 years ago)
- Last Synced: 2024-10-11T14:15:31.537Z (2 months ago)
- Language: Erlang
- Homepage: http://dustin.github.com/2009/10/11/ememcached.html
- Size: 80.1 KB
- Stars: 50
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# 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!