| ryah ( @ 2008-07-02 03:58:00 |
dedicated cache server.
Implemented the caching server in Erlang using MochiWeb. Code is here.
To use:
Ids are delimited by commas and spaces.
to expire all caches matching
(Was surprisingly painless considering that I've never programmed in Erlang before. Erlang has some hideous syntax though.)
Implemented the caching server in Erlang using MochiWeb. Code is here.
To use:
cd deps/mochiweb-src make cd ../.. make ./start.shThis 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,F54to 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.)