projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ZOOM: no memcached/redis hack. Options for redis context
[yaz-moved-to-github.git]
/
src
/
zoom-p.h
diff --git
a/src/zoom-p.h
b/src/zoom-p.h
index
5abaa2a
..
bb6db6f
100644
(file)
--- a/
src/zoom-p.h
+++ b/
src/zoom-p.h
@@
-39,6
+39,9
@@
#if HAVE_LIBMEMCACHED_MEMCACHED_H
#include <libmemcached/memcached.h>
#endif
#if HAVE_LIBMEMCACHED_MEMCACHED_H
#include <libmemcached/memcached.h>
#endif
+#if HAVE_HIREDIS
+#include <hiredis/hiredis.h>
+#endif
#define SHPTR 1
#define SHPTR 1
@@
-115,6
+118,9
@@
struct ZOOM_connection_p {
#if HAVE_LIBMEMCACHED_MEMCACHED_H
memcached_st *mc_st;
#endif
#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;
};
typedef struct ZOOM_record_cache_p *ZOOM_record_cache;