summaryrefslogtreecommitdiff
path: root/adapters
AgeCommit message (Collapse)Author
2024-03-23all: rename redis -> redict symbols and commentsmasterAnna (navi) Figueiredo Gomes
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
2024-03-22fixup! all: rename output filesAnna (navi) Figueiredo Gomes
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
2024-03-22all: rename output filesAnna (navi) Figueiredo Gomes
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
2024-03-22all: use REUSE with LGPL-3.0-or-later and BSD-3-ClauseAnna (navi) Figueiredo Gomes
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
2024-01-30Fix memory leak.Mark Agranat
When redisLibuvAttach receives error from call to uv_poll_init_socket there is a memory leaked ptr of type redisLibuvEvents.
2023-04-24Add RedisModule adapter (#1182)Ozan Tezcan
* Add RedisModule adapter * add timer callback, add compatibility helper
2022-12-21Add sdevent adapterMichael de Lang
2022-10-24fixed cpp build error with adapters/libhv.hcqm
2022-09-21Add timeout support to libhv adapter. (#1109)Michael Grunder
Add timeout support to libhv adapter. See: #904
2022-09-07Add adapters/libhvhewei.it
2022-09-01uvadapter: reduce number of uv_poll_start callsAnton Tiurin
Internally uv_poll_start iterates over all attached event handlers to update event mask. It's quite expensive operation if there many event handlers attached to a loop. As redisLibuvEvents.events is a copy of what libuv should see, we can rely on it to avoid event mask updates. Signed-off-by: Anton Tiurin <noxiouz@yandex.ru>
2022-07-05Polling adapter and exampleKristján Valur Jónsson
2022-01-18Add timeout support for libuv adapter (#1016)MichaelSuen
Add timeout to libuv adapter Co-authored-by: sunmingqi <sunmingqi@corp.netease.com> Co-authored-by: sunmingqi <smq222@126.com> Co-authored-by: Michael Grunder <michael.grunder@gmail.com> Co-authored-by: Viktor Söderqvist <viktor@zuiderkwast.se>
2022-01-05Fix adapters/libevent.h compilation for 64-bit Windows (#937)Peter Tummillo
Where SOCKET is a 64-bit unsigned integer.
2021-11-18Remove unused parameter warning in libev adapterBjörn Svensson
A warning in `redisLibevTimeout(..)` is triggered when building the libev adapter with Clang using -Wextra/-Wunused-parameter. Works fine with gcc..
2020-07-30Keep libev's code style (#857)lijiageng
2020-06-01Use explicit pointer casting for c++ compatibility (#826)Aureus
2020-05-22Allow users to replace allocator and handle OOM everywhere. (#800)Michael Grunder
* 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.
2020-05-04Support timeouts in libev adapater (#795)Michael Grunder
Add support for timeouts in our libev adapter. See #795
2020-04-09Use correct libuv call on Windows (#784)Michael Grunder
Explicitly call `uv_poll_init_socket` as that has slightly different semantics on Windows (and is identical to `uv_poll_init` on Linux). http://docs.libuv.org/en/v1.x/poll.html#c.uv_poll_init_socket
2020-01-28Safe allocation wrappers (#754)Michael Grunder
Create allocation wrappers with a configurable OOM handler (defaults to abort()). See #752, #747
2019-02-20fix redisLibeventEvents initvalentino
2019-02-20libevent: call destroy from cleanupMark Nunberg
also, indentation fix
2019-02-20Add EV_PERSIST flag to read eventsMark Nunberg
This will avoid the need to constantly reschedule the event
2019-02-20libevent: fix invalid mem access on delete within callback enterMark Nunberg
2019-02-20Fix memory leaksvalentino
2019-02-20read/write timeoutsMark Nunberg
2018-11-04Fix errors not propagating properly with libuv.h.Yossi Gottlieb
2017-03-28Update libevent.hzfz
event_del can not free the "e->rev" and "e->wev",that will leak when reconnect the redis
2016-12-09Auto merge of #429 - xinchuantao:master, r=badboynot-a-robot
using new version libevent
2016-09-19Prevented uv adapter from calling write when context has been freedPaul Scott
2016-05-20using new version libeventChris.Xin
2015-07-27Added MacOS X addapter and corresponding example.Dmitry Bakhvalov
Added MacOS X support via CoreFoundation run loop.
2015-07-27Make sure to disconnect the adapter in the destructorPietro Cerutti
2015-07-27Fix typoPietro Cerutti
2015-07-27Add hooks for read/write/cleanupPietro Cerutti
2015-07-27Add Qt adapter and relative example.Pietro Cerutti
2015-07-27Add an Ivykis adapterGergely Nagy
This adds a new adapter and an example for using hiredis with the ivykis async I/O library. Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2015-06-22Use explicit casts for void* pointer in order to compile in C++Simon Ninon
2015-01-05Add GLib 2.0 adapterChristian Hergert
[Cleaned up Makefile and header includes. Didn't change crazy coding style because it's the convention for GLib systems.] Closes #83 Closes #71
2015-01-05Cleanup libuv adaptertorque
This: - Removes misplaced libuv function prototype - Includes stdlib for free() Closes #251
2014-04-09Add missing license and copyright for adaptersantirez
This is a backport of https://github.com/antirez/redis/commit/d01aad329c259a7276c448cee6696b04dfa6f8c1
2014-04-09Define redisLibuvAttach as staticCharlie Somerville
Closes #206
2014-04-09Libuv: Fix compile warnings and C++ compatabilityJohn Graham
Closes #189
2013-06-09Removed unnecessary commentsErik Dubbelboer
2013-06-04Added libuv adapterErik Dubbelboer
2011-06-27Convert the rest of the async adapters contain static functions for easier ↵R. Tyler Croy
linking
2011-06-27Make libev adapter functions static to fix linkingR. Tyler Croy
This will allow two different compilation units to include libev.h and link together
2011-06-27Add implied include of stdlib.hR. Tyler Croy
2011-04-21sys/types.h is included by libevent itselfPieter Noordhuis