September 2013
Intermediate to advanced
548 pages
12h 25m
English
You create ETS tables by calling ets:new. The process
that creates the table is called the owner of the
table. When you create the table, it has a set of options that
cannot be changed. If the owner process dies, space for the
table is automatically deallocated. You can delete the table
by calling ets:delete.
The arguments to ets:new are as follows:
-spec ets:new(Name, [Opt]) -> TableIdName is an atom. [Opt]
is a list of options, taken from the following:
set | ordered_set | bag |
duplicate_bagThis creates an ETS table of the given type (we talked about these earlier).
privateThis creates a private table. Only the owner process can read and write this table.
publicThis creates a public table. Any process that knows the ...
Read now
Unlock full access