-
-
Save Miserlou/01051dabf304f45c0b250615c972caba to your computer and use it in GitHub Desktop.
ets.exs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a new table called `globals | |
:ets.new(:gloabls, [:named_table, :public]) | |
# Put some data in it | |
:ets.insert(:globals, {:are_we_crunching, true}) | |
# Get it back | |
:ets.lookup(:globals, :are_we_crunching) # true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/FrancoB411/1b4eb2c475bbedc65e7786ce7192f060/revisions