diff files/patch-src_apps_common_hiredis__libevent2.h @ 4:9a1ee735f28f

Patch to allow redis connections by a Unix socket. Also document the new "socket" keyword for redis connections in the example configuration file.
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 27 Mar 2020 15:07:57 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/files/patch-src_apps_common_hiredis__libevent2.h	Fri Mar 27 15:07:57 2020 +0100
@@ -0,0 +1,11 @@
+--- src/apps/common/hiredis_libevent2.h.orig	2019-03-02 21:06:19 UTC
++++ src/apps/common/hiredis_libevent2.h
+@@ -50,7 +50,7 @@ typedef void* redis_context_handle;
+ 
+ void redis_async_init(void);
+ 
+-redis_context_handle redisLibeventAttach(struct event_base *base, char *ip, int port, char *pwd, int db);
++redis_context_handle redisLibeventAttach(struct event_base *base, char *ip, int port, char *pwd, char *usocket, int db);
+ 
+ void send_message_to_redis(redis_context_handle rch, const char *command, const char *key, const char *format,...);
+