Skip to content

Instantly share code, notes, and snippets.

@Miserlou

Miserlou/ets.exs Secret

Created February 20, 2023 13:34
Show Gist options
  • Save Miserlou/01051dabf304f45c0b250615c972caba to your computer and use it in GitHub Desktop.
Save Miserlou/01051dabf304f45c0b250615c972caba to your computer and use it in GitHub Desktop.
ets.exs
# 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
@FrancoB411
Copy link

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