REST Server Sample

A simple REST server that stores and retrieves values from memcache.

GET and PUT to
/memcached/{key}

For example:

$ echo hello > hello.txt
$ echo bye > bye.txt
$ curl http://{{host}}/memcached/a
# Store the value hello in /a.
$ curl http://{{host}}/memcached/a -T hello.txt
$ curl http://{{host}}/memcached/a
hello    

Incrementer Sample

Click the button to increment a counter in memcache.
Current count: {{ count }}
Last incremented by: {{ who }}