-
-
Save FrancoB411/1b4eb2c475bbedc65e7786ce7192f060 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(:globals, [: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
Fix typo on line 2