GME
13
|
Classes | |
struct | apr_memcache_server_t |
struct | apr_memcache_t |
struct | apr_memcache_value_t |
struct | apr_memcache_stats_t |
Typedefs | |
typedef struct apr_memcache_conn_t | apr_memcache_conn_t |
typedef struct apr_memcache_server_t | apr_memcache_server_t |
typedef apr_uint32_t(* | apr_memcache_hash_func )(void *baton, const char *data, const apr_size_t data_len) |
typedef struct apr_memcache_t | apr_memcache_t |
typedef apr_memcache_server_t *(* | apr_memcache_server_func )(void *baton, apr_memcache_t *mc, const apr_uint32_t hash) |
Enumerations | |
enum | apr_memcache_server_status_t { APR_MC_SERVER_LIVE, APR_MC_SERVER_DEAD } |
Functions | |
APU_DECLARE (apr_uint32_t) apr_memcache_hash(apr_memcache_t *mc | |
APU_DECLARE (apr_memcache_server_t *) apr_memcache_find_server_hash(apr_memcache_t *mc | |
APU_DECLARE (apr_status_t) apr_memcache_add_server(apr_memcache_t *mc | |
APU_DECLARE (void) apr_memcache_add_multget_key(apr_pool_t *data_pool | |
Variables | |
const char * | data |
const char const apr_size_t | data_len |
const apr_uint32_t | hash |
apr_memcache_t * | mc |
apr_memcache_server_t * | server |
const char * | host |
const char apr_port_t | port |
apr_memcache_server_t * | ms |
const char apr_port_t apr_uint32_t | min |
const char apr_port_t apr_uint32_t apr_uint32_t | smax |
const char apr_port_t apr_uint32_t apr_uint32_t apr_uint32_t | max |
const char apr_port_t apr_uint32_t apr_uint32_t apr_uint32_t apr_uint32_t | ttl |
const char apr_port_t apr_uint32_t apr_uint32_t apr_uint32_t apr_uint32_t apr_memcache_server_t ** | ns |
apr_uint16_t | max_servers |
apr_uint16_t apr_uint32_t | flags |
apr_pool_t * | p |
apr_pool_t const char * | key |
apr_pool_t const char char ** | baton |
apr_pool_t const char char apr_size_t * | len |
const char apr_hash_t ** | values |
apr_pool_t * | temp_pool |
apr_pool_t apr_pool_t * | data_pool |
const char char const apr_size_t | data_size |
const char char const apr_size_t apr_uint32_t | timeout |
const char apr_int32_t | n |
const char apr_int32_t apr_uint32_t * | nv |
const char apr_int32_t apr_uint32_t * | new_value |
apr_pool_t apr_memcache_stats_t ** | stats |
typedef struct apr_memcache_conn_t apr_memcache_conn_t |
Opaque memcache client connection object
Definition at line 56 of file apr_memcache.h.
typedef apr_uint32_t(* apr_memcache_hash_func)(void *baton, const char *data, const apr_size_t data_len) |
Definition at line 82 of file apr_memcache.h.
typedef apr_memcache_server_t*(* apr_memcache_server_func)(void *baton, apr_memcache_t *mc, const apr_uint32_t hash) |
Definition at line 93 of file apr_memcache.h.
typedef struct apr_memcache_server_t apr_memcache_server_t |
Memcache Server Info Object
Definition at line 59 of file apr_memcache.h.
typedef struct apr_memcache_t apr_memcache_t |
Definition at line 86 of file apr_memcache.h.
Specifies the status of a memcached server
APR_MC_SERVER_LIVE |
Server is alive and responding to requests |
APR_MC_SERVER_DEAD |
Server is not responding to requests |
Definition at line 49 of file apr_memcache.h.
APU_DECLARE | ( | apr_uint32_t | ) |
Creates a crc32 hash used to split keys between servers
mc | The memcache client object to use |
data | Data to be hashed |
data_len | Length of the data to use |
Pure CRC32 Hash. Used by some clients.
hash compatible with the standard Perl Client.
Picks a server based on a hash
mc | The memcache client object to use |
hash | Hashed value of a Key |
server selection compatible with the standard Perl Client.
Finds a Server object based on a hostname/port pair
mc | The memcache client object to use |
host | Hostname of the server |
port | Port of the server |
Adds a server to a client object
mc | The memcache client object to use |
server | Server to add |
Enables a Server for use again
mc | The memcache client object to use |
ms | Server to Activate |
Disable a Server
mc | The memcache client object to use |
ms | Server to Disable |
Creates a new Server Object
p | Pool to use |
host | hostname of the server |
port | port of the server |
min | minimum number of client sockets to open |
smax | soft maximum number of client connections to open |
max | hard maximum number of client connections |
ttl | time to live in microseconds of a client connection |
ns | location of the new server object |
Creates a new memcached client object
p | Pool to use |
max_servers | maximum number of servers |
flags | Not currently used |
mc | location of the new memcache client object |
Gets a value from the server, allocating the value out of p
mc | client to use |
p | Pool to use |
key | null terminated string containing the key |
baton | location of the allocated value |
len | length of data at baton |
flags | any flags set by the client for this key |
Gets multiple values from the server, allocating the values out of p
mc | client to use |
temp_pool | Pool used for temporary allocations. May be cleared inside this call. |
data_pool | Pool used to allocate data for the returned values. |
values | hash of apr_memcache_value_t keyed by strings, contains the result of the multiget call. |
Sets a value by key on the server
mc | client to use |
key | null terminated string containing the key |
baton | data to store on the server |
data_size | length of data at baton |
timeout | time in seconds for the data to live on the server |
flags | any flags set by the client for this key |
Adds value by key on the server
mc | client to use |
key | null terminated string containing the key |
baton | data to store on the server |
data_size | length of data at baton |
timeout | time for the data to live on the server |
flags | any flags set by the client for this key |
Replaces value by key on the server
mc | client to use |
key | null terminated string containing the key |
baton | data to store on the server |
data_size | length of data at baton |
timeout | time for the data to live on the server |
flags | any flags set by the client for this key |
Deletes a key from a server
mc | client to use |
key | null terminated string containing the key |
timeout | time for the delete to stop other clients from adding |
Increments a value
mc | client to use |
key | null terminated string containing the key |
n | number to increment by |
nv | new value after incrementing |
Decrements a value
mc | client to use |
key | null terminated string containing the key |
n | number to decrement by |
new_value | new value after decrementing |
Query a server's version
ms | server to query |
p | Pool to allocate answer from |
baton | location to store server version string |
len | length of the server version string |
Query a server for statistics
ms | server to query |
p | Pool to allocate answer from |
stats | location of the new statistics structure |
APU_DECLARE | ( | void | ) |
Add a key to a hash for a multiget query if the hash (*value) is NULL it will be created
data_pool | pool from where the hash and their items are created from |
key | null terminated string containing the key |
values | hash of keys and values that this key will be added to |
apr_pool_t char** baton |
Definition at line 248 of file apr_memcache.h.
const char* data |
Definition at line 130 of file apr_memcache.h.
const char const apr_size_t data_len |
Definition at line 130 of file apr_memcache.h.
Definition at line 278 of file apr_memcache.h.
const char char const apr_size_t data_size |
Definition at line 292 of file apr_memcache.h.
const char char const apr_size_t apr_uint32_t apr_uint16_t flags |
Definition at line 233 of file apr_memcache.h.
apr_memcache_t const apr_uint32_t hash |
Definition at line 155 of file apr_memcache.h.
const char * host |
Definition at line 184 of file apr_memcache.h.
const char* key |
Definition at line 248 of file apr_memcache.h.
apr_pool_t const char char apr_size_t* len |
Definition at line 248 of file apr_memcache.h.
const char apr_port_t apr_uint32_t apr_uint32_t apr_uint32_t max |
Definition at line 218 of file apr_memcache.h.
apr_uint16_t max_servers |
Definition at line 233 of file apr_memcache.h.
apr_uint16_t apr_uint32_t apr_memcache_t ** mc |
Definition at line 161 of file apr_memcache.h.
const char apr_port_t apr_uint32_t min |
Definition at line 218 of file apr_memcache.h.
Definition at line 193 of file apr_memcache.h.
const char apr_int32_t n |
Definition at line 351 of file apr_memcache.h.
const char apr_int32_t apr_uint32_t* new_value |
Definition at line 363 of file apr_memcache.h.
const char apr_port_t apr_uint32_t apr_uint32_t apr_uint32_t apr_uint32_t apr_memcache_server_t** ns |
Definition at line 218 of file apr_memcache.h.
const char apr_int32_t apr_uint32_t* nv |
Definition at line 351 of file apr_memcache.h.
Definition at line 248 of file apr_memcache.h.
const char apr_port_t port |
Definition at line 184 of file apr_memcache.h.
Definition at line 173 of file apr_memcache.h.
const char apr_port_t apr_uint32_t apr_uint32_t smax |
Definition at line 218 of file apr_memcache.h.
Definition at line 434 of file apr_memcache.h.
Definition at line 278 of file apr_memcache.h.
const char apr_uint32_t timeout |
Definition at line 292 of file apr_memcache.h.
const char apr_port_t apr_uint32_t apr_uint32_t apr_uint32_t apr_uint32_t ttl |
Definition at line 218 of file apr_memcache.h.
Definition at line 264 of file apr_memcache.h.