Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/0xffea/ocaml-redis

Redis bindings for OCaml
https://github.com/0xffea/ocaml-redis

ocaml ocaml-library redis-client

Last synced: 3 months ago
JSON representation

Redis bindings for OCaml

Awesome Lists containing this project

README

        

# OCaml-redis [![Build](https://github.com/0xffea/ocaml-redis/workflows/Build%20redis/badge.svg)](https://github.com/0xffea/ocaml-redis/actions)

Client library for [Redis](http://redis.io/) in pure OCaml.

Changelog can be found in [CHANGES.md](/CHANGES.md) file.

## Dependencies

- For `redis-lwt`, [Lwt](http://ocsigen.org/lwt/install) is needed.

## Documentation

http://0xffea.github.io/ocaml-redis/

## Quick start

### Installation

`ocaml-redis` implements synchronous and lwt clients. Each of them is in a separate package.

- synchronous version:
```
opam install redis-sync
```
- lwt version:
```
opam install redis-lwt
```

**Note**: connections are not safe to share among threads.

## Contribution

The tests require [Docker](https://docs.docker.com/get-docker/) and [docker-compose](https://docs.docker.com/compose/install/).

Once they have been installed, the tests can be run with `make test`.