YAZ  5.23.1
Functions
zoom-memcached.c File Reference

Implements query/record caching using memcached. More...

#include <assert.h>
#include <string.h>
#include <errno.h>
#include "zoom-p.h"
#include <yaz/yaz-util.h>
#include <yaz/xmalloc.h>
#include <yaz/log.h>
#include <yaz/diagbib1.h>

Go to the source code of this file.

Functions

void ZOOM_memcached_init (ZOOM_connection c)
 
void ZOOM_memcached_destroy (ZOOM_connection c)
 
int ZOOM_memcached_configure (ZOOM_connection c)
 
static void wrbuf_vary_puts (WRBUF w, const char *v)
 
void ZOOM_memcached_resultset (ZOOM_resultset r, ZOOM_query q)
 
void ZOOM_memcached_search (ZOOM_connection c, ZOOM_resultset resultset)
 
void ZOOM_memcached_hitcount (ZOOM_connection c, ZOOM_resultset resultset, Z_OtherInformation *oi, const char *precision)
 
void ZOOM_memcached_add (ZOOM_resultset r, Z_NamePlusRecord *npr, int pos, const char *syntax, const char *elementSetName, const char *schema, Z_SRW_diagnostic *diag)
 
Z_NamePlusRecordZOOM_memcached_lookup (ZOOM_resultset r, int pos, const char *syntax, const char *elementSetName, const char *schema)
 

Detailed Description

Implements query/record caching using memcached.

Definition in file zoom-memcached.c.

Function Documentation

static void wrbuf_vary_puts ( WRBUF  w,
const char *  v 
)
static

Definition at line 188 of file zoom-memcached.c.

References wrbuf_puts(), and wrbuf_sha1_puts().

Referenced by ZOOM_memcached_resultset().

void ZOOM_memcached_add ( ZOOM_resultset  r,
Z_NamePlusRecord npr,
int  pos,
const char *  syntax,
const char *  elementSetName,
const char *  schema,
Z_SRW_diagnostic diag 
)
int ZOOM_memcached_configure ( ZOOM_connection  c)
void ZOOM_memcached_destroy ( ZOOM_connection  c)
void ZOOM_memcached_hitcount ( ZOOM_connection  c,
ZOOM_resultset  resultset,
Z_OtherInformation oi,
const char *  precision 
)
void ZOOM_memcached_init ( ZOOM_connection  c)
Z_NamePlusRecord* ZOOM_memcached_lookup ( ZOOM_resultset  r,
int  pos,
const char *  syntax,
const char *  elementSetName,
const char *  schema 
)
void ZOOM_memcached_resultset ( ZOOM_resultset  r,
ZOOM_query  q 
)
void ZOOM_memcached_search ( ZOOM_connection  c,
ZOOM_resultset  resultset 
)