Pockets
Pockets is an Elixir wrapper around Erlang ETS and DETS, Erlang’s built-in term storage and disk-based term storage. Pockets aims to provide a simple and familiar interface for caching and persisting data by implementing many of the functions found in the built-in Map and Keyword modules. A pocket may hold data in memory or on disk.
Secondly, the docs on erlang.org are a bit rough to look at for Elixir developers, so
this package acts as a case study of the differences between the powerful built-in :ets and :dets libraries.
In case it was too subtle, “Pockets” is a name that includes “ETS” for mnemonic purposes.
Installation
If available in Hex, the package can be installed
by adding pockets to your list of dependencies in mix.exs:
def deps do
[
{:pockets, "~> 0.1.0"}
]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/pockets.
Image Attribution
“pocket” by Hilmi Hidayat from the Noun Project