OTP
OTP
Observer
iex(1)> observer.start()Applications of ETS
Usage
Last updated
iex(1)> observer.start()Last updated
tab = :ets.new(:my_table, [:set]) #=> 8211
:ets.insert(tab, {:key1, "value1"}) #=> true
:ets.lookup(tab, :key1) #=> [key1: "value1"]:ets.tab2list(:rate_limiter_requests) #[[key1: "value1"]]{:ok, table} = :dets.open_file(:disk_storage, [type: :set]) #{:ok, :disk_storage}
:dets.open_file(:file_table, [{:file, "test/test.txt"}]):dets.insert(table, {:k, 1}) #can also use :name to access table as that is what table is
:dets.lookup(:file_table, :a) # => [a: 3]
:dets.close(:file_table) #If you don't do this, the table will be repaired the next time it is opened.