keystore

Package Version Hex Docs Erlang-compatible JavaScript-compatible

gleam add keystore@1
import keystore

pub fn main() {
  keystore.new()
  // Add a value "bob" under the key "name"
  |> keystore.set("name", "bob")
  // Give the "name" entry an expiry of 5 seconds
  |> keystore.expire("name", 5)

  Nil
}

Further documentation can be found at https://hexdocs.pm/keystore.

Future Items

Development

gleam run   # Run the project
gleam test  # Run the tests
Search Document