BSD Ports

databases/libhiredis 1.4.1 OpenBSD

minimalistic C client for Redis

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Last update
Commit
d53d2cf039
Categories
databases, devel

Description

Hiredis is a minimalistic C client library for the Redis database.

It is minimalistic because it just adds minimal support for the protocol, but at the same time it uses a high level printf-alike API in order to make it much higher level than otherwise suggested by its minimal code base and the lack of explicit bindings for every Redis command.

Apart from supporting sending commands and receiving replies, it comes with a reply parser that is decoupled from the I/O layer. It is a stream parser designed for easy reusability, which can for instance be used in higher level language bindings for efficient reply parsing.

Hiredis only supports the binary-safe Redis protocol, so you can use it with any Redis version >= 1.2.0.

The library comes with multiple APIs. There is the synchronous API, the asynchronous API and the reply parsing API.

Install

Binary package:

pkg_add libhiredis

From the ports tree:

cd /usr/ports/databases/libhiredis && make install

Dependencies

Build dependencies 3

Commit history 2

DateCommitCreditsLog message
d53d2cf039 sthen update to libhiredis-1.4.1
cc30b384e4 sthen fix TDEP paths using redis, pointed out by tb@