Simple key/value store based on GenServer.
If available in Hex, the package can be installed
by adding kvstore to your list of dependencies in mix.exs:
def deps do
[
{:kvstore, "~> 0.1.0"}
]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/kvstore.
Kvstore.put("a", 1)
Kvstore.get("a")
# > 1
Kvstore.clear
Kvstore.fetch
# > %{}
Kvstore.clear
Kvstore.put("q", 9)
Kvstore.put("x", 10)
Kvstore.fetch
# > %{"q" => 9, "x" => 10}mix test
mix credo
mix deps.audit