#include <yaz/srw.h>
#include <yaz/cookie.h>
#include <yaz/mutex.h>
-#if HAVE_LIBMEMCACHED_MEMCACHED_H
+#if HAVE_LIBMEMCACHED
#include <libmemcached/memcached.h>
#endif
+#if HAVE_HIREDIS
+#include <hiredis/hiredis.h>
+#endif
#define SHPTR 1
zoom_sru_mode sru_mode;
int no_redirects; /* 0 for no redirects. >0 for number of redirects */
yaz_cookies_t cookies;
+ char *location;
int log_details;
int log_api;
WRBUF saveAPDU_wrbuf;
-#if HAVE_LIBMEMCACHED_MEMCACHED_H
+#if HAVE_LIBMEMCACHED
memcached_st *mc_st;
#endif
+#if HAVE_HIREDIS
+ redisContext *redis_c;
+#endif
+ int expire_search;
+ int expire_record;
};
typedef struct ZOOM_record_cache_p *ZOOM_record_cache;
const char *syntax,
const char *elementSetName,
const char *schema);
-
+ZOOM_record ZOOM_record_cache_lookup_i(ZOOM_resultset r, int pos,
+ const char *syntax,
+ const char *elementSetName,
+ const char *schema);
void ZOOM_handle_facet_result(ZOOM_connection c, ZOOM_resultset r,
Z_OtherInformation *o);
void ZOOM_handle_search_result(ZOOM_connection c, ZOOM_resultset resultset,