Skip to content

Khovanov/Kvstore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kvstore

Simple key/value store based on GenServer.

Installation

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"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/kvstore.

Examples (IEx)

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}

Testing

mix test

Static code analysis

mix credo

Check vulnerabilities

mix deps.audit

About

Simple key/value store based on GenServer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages