All Projects → cpp-redis → cpp_redis

cpp-redis / cpp_redis

Licence: MIT license
C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform

Projects that are alternatives of or similar to cpp redis

Cpp redis
C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform - NO LONGER MAINTAINED - Please check https://github.com/cpp-redis/cpp_redis
Stars: ✭ 855 (+68.97%)
Mutual labels:  unix, redis-client
jimhttp
A library collection and web microframework
Stars: ✭ 25 (-95.06%)
Mutual labels:  redis-client
measurement-kit
[DEPRECATED] Network measurement engine
Stars: ✭ 97 (-80.83%)
Mutual labels:  unix
probes-rs
Rust library to read out system stats from a machine running Unix
Stars: ✭ 14 (-97.23%)
Mutual labels:  unix
Coherent
Coherent OS
Stars: ✭ 20 (-96.05%)
Mutual labels:  unix
ModernOperatingSystems AndrewTanenbaum
My notes after reading 'Modern Operating Systems' book by Andrew Tanenbaum and Herbert Bos.
Stars: ✭ 71 (-85.97%)
Mutual labels:  unix
socket
Dazzle Async Socket
Stars: ✭ 19 (-96.25%)
Mutual labels:  unix
rueidis
A Fast Golang Redis RESP3 client that supports Client Side Caching, Auto Pipelining, Generics OM, RedisJSON, RedisBloom, RediSearch, RedisAI, RedisGears, etc.
Stars: ✭ 422 (-16.6%)
Mutual labels:  redis-client
simple redis
Simple and resilient redis client for rust.
Stars: ✭ 21 (-95.85%)
Mutual labels:  redis-client
java-redis-client
OpenTracing Instrumentation for Redis Client
Stars: ✭ 31 (-93.87%)
Mutual labels:  redis-client
RCE-python-oneliner-payload
Python bind shell single line code for both Unix and Windows, used to find and exploit RCE (ImageMagick, Ghostscript, ...)
Stars: ✭ 23 (-95.45%)
Mutual labels:  unix
ATAC-seq
Basic workflow for ATAC-seq analysis
Stars: ✭ 30 (-94.07%)
Mutual labels:  unix
gitpack
Git-based package manager written in POSIX shell
Stars: ✭ 72 (-85.77%)
Mutual labels:  unix
CloudStructures
Redis Client based on StackExchange.Redis.
Stars: ✭ 124 (-75.49%)
Mutual labels:  redis-client
duckOS
Yet another hobby x86 UNIX-like operating system written in C and C++. Features a dynamically linked userspace, an in-house c standard library, and more! And yes, it runs DOOM.
Stars: ✭ 250 (-50.59%)
Mutual labels:  unix
node-redis-connection-pool
A node.js connection manager for Redis
Stars: ✭ 52 (-89.72%)
Mutual labels:  redis-client
Dot-It-Up
A collection of dotfile scripts, plugins, and clever hacks so that you can become the master of your own OS! 🚀
Stars: ✭ 254 (-49.8%)
Mutual labels:  unix
rusty-sandbox
A sandboxing library for Rust
Stars: ✭ 59 (-88.34%)
Mutual labels:  unix
daemonize
Template code for writing UNIX-daemons.
Stars: ✭ 33 (-93.48%)
Mutual labels:  unix
ccalendar
Chinese Calendar in calendar(1) for BSD, Linux & macOS
Stars: ✭ 17 (-96.64%)
Mutual labels:  unix

cpp_redis Build Status Build status

cpp_redis is a C++11 Asynchronous Multi-Platform Lightweight Redis Client, with support for synchronous operations, pipelining, sentinels and high availability.

Requirement

cpp_redis has no dependency. Its only requirement is C++11.

It comes with no network module, so you are free to configure your own, or to use the default one (tacopie)

Example

cpp_redis::client

cpp_redis::client client;

client.connect();

client.set("hello", "42");
client.get("hello", [](cpp_redis::reply& reply) {
  std::cout << reply << std::endl;
});
//! also support std::future
//! std::future<cpp_redis::reply> get_reply = client.get("hello");

client.sync_commit();
//! or client.commit(); for asynchronous call

cpp_redis::client full documentation and detailed example. More about cpp_redis::reply.

cpp_redis::subscriber

cpp_redis::subscriber sub;

sub.connect();

sub.subscribe("some_chan", [](const std::string& chan, const std::string& msg) {
  std::cout << "MESSAGE " << chan << ": " << msg << std::endl;
});
sub.psubscribe("*", [](const std::string& chan, const std::string& msg) {
  std::cout << "PMESSAGE " << chan << ": " << msg << std::endl;
});

sub.commit();

cpp_redis::subscriber full documentation and detailed example.

Wiki

A Wiki is available and provides full documentation for the library as well as installation explanations.

Doxygen

A Doxygen documentation is available and provides full API documentation for the library.

License

cpp_redis is under MIT License.

Contributing

Please refer to CONTRIBUTING.md.

Special Thanks

Mike Moening for his unexpected and incredible great work aiming to port cpp_redis on Windows, provides sentinel support and high availability support!

Author

Simon Ninon

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].