![radish](https://raw.githubusercontent.com/massivefermion/radish/main/banner.jpg)
[![Package Version](https://img.shields.io/hexpm/v/radish)](https://hex.pm/packages/radish)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/radish/)
# radish
A Redis client for Gleam
## <img width=32 src="https://raw.githubusercontent.com/massivefermion/radish/main/icon.png"> Quick start
```sh
gleam test # Run the tests
gleam shell # Run an Erlang shell
```
## <img width=32 src="https://raw.githubusercontent.com/massivefermion/radish/main/icon.png"> Installation
```sh
gleam add radish
```
## <img width=32 src="https://raw.githubusercontent.com/massivefermion/radish/main/icon.png"> Usage
```gleam
import gleam/option
import radish
import radish/list
pub fn main() {
let assert Ok(client) = radish.start("localhost", 6379, 1024)
radish.set(client, "requests", "64", option.Some(60_000), 1024)
radish.decr(client, "requests", 1024)
list.lpush(
client,
"names",
["Gary", "Andy", "Nicholas", "Danny", "Shaun", "Ed"],
1024,
)
list.lpop(client, "names", 1024)
}
```