X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fzoom-p.h;h=79f2f445882c40c394d017fd51d8f519300bb96c;hp=3cb9b80144fd13ac357f214615c852d070133638;hb=323805b6779bcf1befdc7cdd7f10c23b06885e0d;hpb=d1b6ed4a27c255041e3d719e4b05ab476c337bbf diff --git a/src/zoom-p.h b/src/zoom-p.h index 3cb9b80..79f2f44 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 @@ -80,6 +83,7 @@ struct ZOOM_connection_p { int len_out; char *proxy; char *tproxy; + int proxy_mode; char *charset; char *lang; char *cookie_out; @@ -107,13 +111,19 @@ 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 + int expire_search; + int expire_record; }; typedef struct ZOOM_record_cache_p *ZOOM_record_cache; @@ -237,6 +247,7 @@ zoom_ret ZOOM_connection_Z3950_send_init(ZOOM_connection c); ZOOM_task ZOOM_connection_add_task(ZOOM_connection c, int which); void ZOOM_connection_remove_task(ZOOM_connection c); +void ZOOM_connection_remove_tasks(ZOOM_connection c); int ZOOM_test_reconnect(ZOOM_connection c); ZOOM_record ZOOM_record_cache_lookup(ZOOM_resultset r, int pos,