Build your own Memcached server. Implement the TCP based Memcached protocol and build a Memcached server.

Build your own Memcached Server is available with a project breakdown on Coding Challenges.