version 1.1.1.1, 2013/10/14 10:32:47
|
version 1.1.1.2, 2016/11/02 10:35:00
|
Line 1
|
Line 1
|
#ifndef _MOD_CACHE_H_ |
#ifndef _MOD_CACHE_H_ |
#define _MOD_CACHE_H_ |
#define _MOD_CACHE_H_ |
|
#include "first.h" |
|
|
#include "buffer.h" |
#include "buffer.h" |
#include "server.h" |
#include "server.h" |
Line 8
|
Line 9
|
#include "stream.h" |
#include "stream.h" |
#include "plugin.h" |
#include "plugin.h" |
|
|
#if defined(HAVE_MEMCACHE_H) | #if defined(USE_MEMCACHED) |
#include <memcache.h> | #include <libmemcached/memcached.h> |
#endif |
#endif |
|
|
#define plugin_data mod_cache_plugin_data |
#define plugin_data mod_cache_plugin_data |
Line 19 typedef struct {
|
Line 20 typedef struct {
|
|
|
array *mc_hosts; |
array *mc_hosts; |
buffer *mc_namespace; |
buffer *mc_namespace; |
#if defined(HAVE_MEMCACHE_H) | #if defined(USE_MEMCACHED) |
struct memcache *mc; | memcached_st *memc; |
#endif |
#endif |
buffer *power_magnet; |
buffer *power_magnet; |
} plugin_config; |
} plugin_config; |