Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luca3m/redis3m
A C++ Redis client
https://github.com/luca3m/redis3m
c-plus-plus hiredis redis redis-client
Last synced: 20 days ago
JSON representation
A C++ Redis client
- Host: GitHub
- URL: https://github.com/luca3m/redis3m
- Owner: luca3m
- License: apache-2.0
- Created: 2014-02-05T20:17:46.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2019-05-22T23:51:41.000Z (over 5 years ago)
- Last Synced: 2024-11-11T01:40:02.469Z (about 1 month ago)
- Topics: c-plus-plus, hiredis, redis, redis-client
- Language: C++
- Homepage:
- Size: 448 KB
- Stars: 190
- Watchers: 30
- Forks: 78
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
redis3m
=======
[![Build Status](https://travis-ci.org/luca3m/redis3m.png?branch=master)](https://travis-ci.org/luca3m/redis3m)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/luca3m/redis3m?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)A C++ [Redis](http://redis.io) client, born to bring my experience using Redis and C++ on a opensource library.
### Main goals
1. Provide a simple and efficient wrapper of [hiredis](http://github.com/redis/hiredis), with C++ facilities like memory management
2. A connection pooling system, with support for high availability using sentinel
3. A set of useful patterns ready to use and composable with other code. For example [scheduler](http://luca3m.me/2013/12/03/redis-scheduler.html), [orm](http://github.com/soveran/ohm), counters or message queueing### Dependencies
redis3m requires hiredis and boost libraries.
### Install
First step install all required dependencies, on a Debian system you can use:
```bash
sudo apt-get install libmsgpack-dev libboost-thread-dev libboost-date-time-dev libboost-test-dev libboost-filesystem-dev libboost-system-dev libhiredis-dev cmake build-essential libboost-regex-dev
```Then checkout the code and compile it
```bash
git clone https://github.com/luca3m/redis3m
cd redis3m
cmake
make
sudo make install
```### Documentation
See [examples](https://github.com/luca3m/redis3m/tree/master/examples) directory for some examples, you can compile them with:
```bash
g++ $(pkg-config --cflags --libs redis3m) -o
```You can find all classes reference [here](http://luca3m.me/redis3m/docs)
### Versioning
This project uses [semantic versioning](http://semver.org). In short words versions are named X.Y[.Z].
Changing X means break API changes, Y means new features without breaking old code, Z means bug fixing.