Redis functional including configure + code
[yaz-moved-to-github.git] / src / zoom-p.h
index 5abaa2a..bb6db6f 100644 (file)
@@ -39,6 +39,9 @@
 #if HAVE_LIBMEMCACHED_MEMCACHED_H
 #include <libmemcached/memcached.h>
 #endif
+#if HAVE_HIREDIS
+#include <hiredis/hiredis.h>
+#endif
 
 #define SHPTR 1
 
@@ -115,6 +118,9 @@ struct ZOOM_connection_p {
 #if HAVE_LIBMEMCACHED_MEMCACHED_H
     memcached_st *mc_st;
 #endif
+#if HAVE_HIREDIS
+    redisContext *redis_c;
+#endif
 };
 
 typedef struct ZOOM_record_cache_p *ZOOM_record_cache;