Digital Media Technology (Spring 2009) / Backend

You can save key-value pairs into the backend, and fetch saved values by key.

Parameters

user
Username. Put here your cs dept username. This isn't controlled, but it's not nice to cause trouble by messing with other users' stuff.
action
get, put or append. This nicely follows Java's HashMap API, with the extra append action.
key
The key to fetch or add.
value
The value to add (or update).

Actions

get
Fetch a saved value. value parameter is ignored here.
put
Add a key and for it, a value. If the key already has a value, it's deleted first. value parameter is obligatory (so you don't accidentally delete any values, when you meant to call get).
append
Append a new value after previous value for given key. The value is concatenated (string+string) after the previous value(s). value parameter is optional, but if it's missing, append doesn't really do anything.

Low level example

Check what the string contains:

Append some text into the string: