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

Node.Js and Socket.IO application on Heroku

I am having this error message when I try to deploy my application on Heroku. Any suggestions? I can easily deploy my app on localhost but it doesn't work on Heroku. My Package.JSON is: { "name":"tryout", "version":"0.0.1", …
Yagiz
  • 1,033
  • 2
  • 21
  • 47
-1
votes
1 answer

Unable to compile the hiredis sds file

Error deferencing pointer to incomplete the type struct Error invalid applicaion of sizof to incomplete type of struct I am trying to compile this sds file to run the redis with the help of QT. I have used the pack macro as described in the…
-1
votes
1 answer

libhiredis does not work when passing redisContext into another function

I am trying to write my own wrapper function to libhiredis to use in my project but when i try to pass the redis_context into another function to issue commands from there. The code segfaults and reports this through gdb: GDB Error: Program received…
Dan
  • 2,209
  • 3
  • 23
  • 44
-1
votes
1 answer

How to cancel hiredis blocking operation

Having a blocking subscription running like below halts the program at redisGetReply (source: hiredis#pipelining) void subscribe (std::string& key, Subscriber* subscriber) { void* reply = redisCommand (redis, "SUBSCRIBE %s", key.c_str ()); …
Ben
  • 807
  • 1
  • 8
  • 22
1 2 3
9
10