#include <yaz/srw.h>
#include <yaz/cookie.h>
#include <yaz/mutex.h>
+#if HAVE_LIBMEMCACHED_MEMCACHED_H
+#include <libmemcached/memcached.h>
+#endif
#define SHPTR 1
int log_details;
int log_api;
WRBUF saveAPDU_wrbuf;
+#if HAVE_LIBMEMCACHED_MEMCACHED_H
+ memcached_st *mc_st;
+#endif
};
typedef struct ZOOM_record_cache_p *ZOOM_record_cache;
ZOOM_facet_field *facets;
int num_facets;
char **facets_names;
+ WRBUF mc_key;
+ int live_set; /* 0=no hit count, 1=cached hit, 2=hits + real set */
};
struct facet_term_p {
char *syntax;
char *elementSetName;
char *schema;
- int recv_search_fired;
} search;
-#define ZOOM_TASK_RETRIEVE 2
- struct {
- int start;
- ZOOM_resultset resultset;
- int count;
- char *syntax;
- char *elementSetName;
- char *schema;
- } retrieve;
#define ZOOM_TASK_CONNECT 3
#define ZOOM_TASK_SCAN 4
struct {