Skip to content

Instantly share code, notes, and snippets.

@FrancoB411
Forked from Miserlou/ets.exs
Last active March 15, 2023 18:25
Show Gist options
  • Save FrancoB411/1b4eb2c475bbedc65e7786ce7192f060 to your computer and use it in GitHub Desktop.
Save FrancoB411/1b4eb2c475bbedc65e7786ce7192f060 to your computer and use it in GitHub Desktop.
ets.exs
# 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
@FrancoB411
Copy link
Author

Fix typo on line 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment