Erlang cached model with Rest-interface