ryah ([info]four) wrote,
@ 2008-07-02 03:58:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
dedicated cache server.
Implemented the caching server in Erlang using MochiWeb. Code is here.

To use:
cd deps/mochiweb-src
make
cd ../..
make
./start.sh
This will start the cacher at http://localhost:8000. You can use the upload.html file in the root directory to test it. It will post a file to /test on the cacher using your browsers default headers as the request template. If you try to GET /test with the same browser, you should get back the cache.

Ids are delimited by commas and spaces.
POST /expire?identifiers?123,F54
to expire all caches matching 123 and F54.


(Was surprisingly painless considering that I've never programmed in Erlang before. Erlang has some hideous syntax though.)



Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…