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: initial experiments with memcached
[yaz-moved-to-github.git]
/
src
/
zoom-p.h
diff --git
a/src/zoom-p.h
b/src/zoom-p.h
index
77f39e9
..
a2cab30
100644
(file)
--- a/
src/zoom-p.h
+++ b/
src/zoom-p.h
@@
-36,6
+36,9
@@
#include <yaz/srw.h>
#include <yaz/cookie.h>
#include <yaz/mutex.h>
#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
#define SHPTR 1
@@
-108,6
+111,9
@@
struct ZOOM_connection_p {
int log_details;
int log_api;
WRBUF saveAPDU_wrbuf;
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;
};
typedef struct ZOOM_record_cache_p *ZOOM_record_cache;
@@
-136,6
+142,7
@@
struct ZOOM_resultset_p {
ZOOM_facet_field *facets;
int num_facets;
char **facets_names;
ZOOM_facet_field *facets;
int num_facets;
char **facets_names;
+ WRBUF mc_key;
};
struct facet_term_p {
};
struct facet_term_p {