[erlang-questions] Store maps in ets/dets?

Robert Virding rvirding@REDACTED
Mon Apr 14 16:09:23 CEST 2014


Then it is a Jesper pointed out: yes, you can store maps in an ETS table,
but at the top-most structure must be a tuple. So you will not be able to
write as you have done.

Robert



On 11 April 2014 06:31, Max Lapshin <max.lapshin@REDACTED> wrote:

> I'm asking exactly about
>
>  ets:insert(web_sessions, #{session_id => <<"1234">>,bytes => 0}).
>
> ets:update_counter(web_sessions, <<"1234">>, {bytes, 150})
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140414/544919b8/attachment.htm>


More information about the erlang-questions mailing list