1. 07 Nov, 2022 1 commit
  2. 19 Sep, 2022 1 commit
    • Bjorn Svensson's avatar
      Additional include directory given by pkg-config (#1118) · 722e3409
      Bjorn Svensson authored
      * Update include example in README
      
      * Update pkg-config installed via CMake
      
      Gives the include directory to enable the use of:
       #include <hiredis/hiredis.h>
      
      but keeps the existing include dir. for backwards compatibility.
      
      Example:
      > pkg-config hiredis --cflags
      -D_FILE_OFFSET_BITS=64 -I/usr/local/include/hiredis -I/usr/local/include
      
      * Update pkg-config installed via Make
      
      Gives the include directory to enable the use of:
        #include <hiredis/hiredis.h>
      but keeps the existing include path for backwards compatibility.
      
      Example:
      > pkg-config hiredis --cflags
      -D_FILE_OFFSET_BITS=64 -I/usr/local/include/hiredis -I/usr/local/include
      722e3409
  3. 02 Sep, 2022 2 commits
  4. 26 Aug, 2022 1 commit
    • michael-grunder's avatar
      Maintain backward compatibiliy withour onConnect callback. · 6a3e96ad
      michael-grunder authored
      In f69fac76, our async onConnect
      callback was improved to take a non-const redisAsyncContext allowing it
      to be reentrant.
      
      Unfortunately, this is a breaking change we can't make until hiredis
      v2.0.0.
      
      This commit creates a separate callback member and corresponding
      function that allows us to use the new functionality, while maintaining
      our existing API for legacy code.
      
      Fixes #1086
      6a3e96ad
  5. 10 Aug, 2022 1 commit
    • Stan Hu's avatar
      Improve example for SSL initialization in README.md · c7111617
      Stan Hu authored
      The previous example left `ssl_error`
      uninitialized. `redisCreateSSLContex` is not guaranteed to set this
      when no error occurs.
      
      Use the `REDIS_SSL_CTX_NONE` constant instead of 0 to be precise.
      c7111617
  6. 04 Aug, 2022 1 commit
  7. 26 Jun, 2022 3 commits
  8. 10 Oct, 2021 1 commit
    • michael-grunder's avatar
      Switch to GitHub actions · 0cac8dae
      michael-grunder authored
      Since TravisCI.org was deprecated we've been without any tests.  This
      commit adds back basic tests in Ubuntu, CentOS, and MacOS.
      
      More sophisticated tests/platforms to come in the future (e.g. 32bit
      tests).
      
      See: #992
      0cac8dae
  9. 07 Oct, 2021 1 commit
  10. 04 Oct, 2021 1 commit
  11. 23 May, 2021 1 commit
  12. 24 Apr, 2021 1 commit
  13. 17 Feb, 2021 1 commit
  14. 27 Oct, 2020 1 commit
  15. 03 Aug, 2020 1 commit
  16. 29 Jul, 2020 1 commit
  17. 20 Jul, 2020 2 commits
    • Michael Grunder's avatar
    • Michael Grunder's avatar
      Resp3 oob push support (#841) · 2e7d7cba
      Michael Grunder authored
      Proper support for RESP3 PUSH messages.
      
      By default, PUSH messages are now intercepted and the reply memory freed.  
      This means existing code should work unchanged when connecting to Redis
      >= 6.0.0 even if `CLIENT TRACKING` were then enabled.
      
      Additionally, we define two callbacks users can configure if they wish to handle
      these messages in a custom way:
      
      void redisPushFn(void *privdata, void *reply);
      void redisAsyncPushFn(redisAsyncContext *ac, void *reply);
      
      See #825
      2e7d7cba
  18. 26 May, 2020 1 commit
  19. 24 May, 2020 1 commit
  20. 22 May, 2020 1 commit
    • Michael Grunder's avatar
      Allow users to replace allocator and handle OOM everywhere. (#800) · 8e0264cf
      Michael Grunder authored
      * Adds an indirection to every allocation/deallocation to allow users to 
        plug in ones of their choosing (use custom functions, jemalloc, etc).
      
      * Gracefully handle OOM everywhere in hiredis.  This should make it possible
        for users of the library to have more flexibility in how they handle such situations.
      
      * Changes `redisReaderTask->elements` from an `int` to a `long long` to prevent
        a possible overflow when transferring the task elements into a `redisReply`.
      
      * Adds a configurable `max elements` member to `redisReader` that defaults to
        2^32 - 1.  This can be set to "unlimited" by setting the value to zero.
      8e0264cf
  21. 16 May, 2020 1 commit
  22. 28 Feb, 2020 1 commit
    • Michael Grunder's avatar
      Housekeeping fixes (#764) · 38675d23
      Michael Grunder authored
      Housekeeping
      
      * Check for C++ (#758, #750) 
      * Include `alloc.h` in `make install` and `cmake`
      * Add a `.def` file for Windows (#760)
      * Include allocation wrappers referenced in adapter headers
      * Fix minor syntax errors and typos in README
      * Fix CI in Windows by properly escaping arguments (#761)
      38675d23
  23. 10 Oct, 2019 1 commit
  24. 07 Oct, 2019 1 commit
  25. 22 Jul, 2019 1 commit
  26. 26 Oct, 2018 1 commit
    • Jean Flach's avatar
      Update README.md · 9ff1cc78
      Jean Flach authored
      Add note about using context->data to pass user data to connect and disconnect callbacks
      9ff1cc78
  27. 20 Apr, 2016 2 commits
  28. 26 Mar, 2016 1 commit
  29. 16 Apr, 2015 1 commit
  30. 05 Jan, 2015 3 commits
  31. 11 Jul, 2013 2 commits
  32. 26 Jan, 2013 1 commit