Questions tagged [hiredis]

Hiredis is a minimalistic C client library for the Redis database

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 an 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.

Source Code: https://github.com/redis/hiredis

139 questions
0
votes
1 answer

hiredis rebuild with .net framework 2.0 error

I tried remove and install the related files for .net framework 3.5 (include the 2.0). Suggested in this stackoverflow Tried to install visual studio 2005 as suggested in the second thing that was suggested in the error. I cannot find hiredis folder…
roger
  • 1,225
  • 2
  • 17
  • 33
0
votes
1 answer

store and retrieve dictionary data from hiredis (a Redis client in C programming)

I try to use hiredis (a Redis client written in C), to send and retrieve the dictionary data, from the Redis server. I can send/receive simple data by using hiredis APIs. I can also retrieve and send the dictionary data using redis-py (a Redis…
mindcoder
  • 377
  • 3
  • 11
0
votes
1 answer

Unable to set a key as 'redisClusterCommand()' is returning null pointer

I'm trying to run a simple program which will insert a key-value into my redis cluster of 6 instances(3 master,3 replica). I'm using hiredis-vip. Here's the program: #include #include #include #include…
Vishal Sharma
  • 1,670
  • 20
  • 55
0
votes
0 answers

Node JS with webpack

I am trying to create an authentication module to record and validate user token using node_redis. However when i added it in my main Node JS api (with webpack), it gets this error during webpack bundling. ERROR in…
mR.Angular
  • 65
  • 2
  • 12
0
votes
1 answer

Asynchronous hiredis with libev and pthread, what am I doing wrong?

I am writing a GUI for a small monochromatic display and I want to update the data on the screen every second. The data is stored in a redis database and I am trying to coordinate using pthread, libev, and asynchronous hiredis calls. My plan is to…
aeronbc
  • 36
  • 5
0
votes
0 answers

New to Hiredis (or Redis)

Sorry in advance as I am new to this community and can be unknowledgeable. This is my first time using redis/hiredis for my c project. In fact, my first time using a key value database and I am just too used to the normal SQL database with tables…
Irminrics
  • 21
  • 7
0
votes
1 answer

hiredis install rebuild fail

I'm trying to install hiredis through npm on a mac and I am getting this error. I know there are some possible duplicates of this but I've tried other solutions and they have not worked for me. Here is the log: 11 warnings and 17 errors…
Aric Peters
  • 111
  • 1
  • 2
  • 13
0
votes
0 answers

Unable to import hiredis using cmake in c project?

The content of my Findhiredis.cmake is # Try to find hiredis # Once done, this will define # # HIREDIS_FOUND - system has hiredis # HIREDIS_INCLUDE_DIRS - hiredis include directories # HIREDIS_LIBRARIES - libraries need to use…
georoot
  • 3,557
  • 1
  • 30
  • 59
0
votes
2 answers

redis freeReplyObject not freeing memory

Here is the code: redisReply * reply; char * stats = get_key(key, reply); freeReplyObject( reply ); get_key is a function in a separate header file: char * get_key(const char* key, redisReply * reply) { reply = redisCommand(rc, "GET %s", key); …
Christopher Reid
  • 4,318
  • 3
  • 35
  • 74
0
votes
1 answer

ev in redisAsyncContext

In redisAsyncContext, stuct ev was defined: struct { void *data; void (*addRead)(void *privdata); void (*delRead)(void *privdata); void (*addWrite)(void *privdata); void (*delWrite)(void *privdata); void…
0
votes
1 answer

Unable to Installing hiredis@0.5.0 on Windows 10 x64

I am trying to install hiredis on a Windows 64-bit system because it is required by the node-celery package. System is running Node v7.9.0 npm v4.5.0 Visual Studio Community 2013 with Update 5…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
0
votes
1 answer

How to use redis with gearman for persistence

How can I use Gearman with redis for persistent queue? I am trying to run it for centos7. I have Gearman working. On running gearmand -h I can see support for libsqlite3, Postgres, libtokyocabinet and MySQL. I've installed hiredis using yum…
Kartik Jain
  • 109
  • 2
  • 9
0
votes
2 answers

HiRedis:: How to insert a blank string in Redis list using LPUSH

I am using redisCommand of the hiredis library to do something like this: LPUSH list1 a b "" c d "" e where "" means I want to insert empty element to the list. It works fine when I do it from command line on redis but when I pass this as a command…
Oliver Blue
  • 677
  • 2
  • 9
  • 22
0
votes
2 answers

Hiredis library not loaded/image not found

I am working on a c++ project using cmake that uses hiredis. The CMake and compilation process do not give any errors. However, when I try to execute my project (from the terminal or from the IDE I'm using [CLion], I get the following error: dyld:…
Connor
  • 545
  • 4
  • 20
0
votes
1 answer

deserialization of pod struct stored in redis fails if key is defined as std::string

Storing of POD struct in redis works fine with const char * but doesn't if std::string is involved. const char * example #include #include #include #include using namespace std; struct Test { …
palik
  • 2,425
  • 23
  • 31