README.md

# keystore

[![Package Version](https://img.shields.io/hexpm/v/keystore)](https://hex.pm/packages/keystore)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/keystore/)
![Erlang-compatible](https://img.shields.io/badge/target-erlang-b83998)
![JavaScript-compatible](https://img.shields.io/badge/target-javascript-f1e05a)

```sh
gleam add keystore@1
```
```gleam
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
- [ ] Encode/Decode options instead of just accepting strings for values
- [ ] Alternative mechanism(s) for cleaning expired entries

## Development

```sh
gleam run   # Run the project
gleam test  # Run the tests
```