<div dir="ltr"><div>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.<br><br></div>Robert<br><br></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 11 April 2014 06:31, Max Lapshin <span dir="ltr"><<a href="mailto:max.lapshin@gmail.com" target="_blank">max.lapshin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra">I'm asking exactly about</div><div class="gmail_extra"><br></div><div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:13px"> ets:insert(web_sessions, #{session_id => <<"1234">>,bytes => 0}).</span><br>
</div><div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:13px">ets:update_counter(web_sessions, <<"1234">>, {bytes, 150})</span></div>
<div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>