X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fzoom-p.h;h=d533084a6a98d4bf1028e69f793d49b309865531;hp=4372ece40d58479833cd39016635084b53b34316;hb=6260987fdcc904b2110b88f882e66fa47e0b35dc;hpb=ea0ffea1d02fe623b4da5b7b8aa972aa9f32f071 diff --git a/src/zoom-p.h b/src/zoom-p.h index 4372ece..d533084 100644 --- a/src/zoom-p.h +++ b/src/zoom-p.h @@ -36,9 +36,12 @@ #include #include #include -#if HAVE_LIBMEMCACHED_MEMCACHED_H +#if HAVE_LIBMEMCACHED #include #endif +#if HAVE_HIREDIS +#include +#endif #define SHPTR 1 @@ -107,13 +110,17 @@ struct ZOOM_connection_p { 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 }; typedef struct ZOOM_record_cache_p *ZOOM_record_cache; @@ -288,7 +295,10 @@ Z_NamePlusRecord *ZOOM_memcached_lookup(ZOOM_resultset r, int pos, 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,