|
Apache HTTPD
|
Classes | |
| struct | apr_memcache_server_t |
| struct | apr_memcache_t |
| struct | apr_memcache_value_t |
| struct | apr_memcache_stats_t |
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 | |
| Computes SipHash-2-4, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key, into a possibly unaligned buffer (using the little endian representation as defined by the authors for interoperabilty) usable as a MAC. | |
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.
Memcache Server Info Object
Definition at line 59 of file apr_memcache.h.
Definition at line 86 of file apr_memcache.h.
Specifies the status of a memcached server
| Enumerator | |
|---|---|
| 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_memcache_server_t * | ) |
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 |
| APU_DECLARE | ( | apr_status_t | ) |
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 |
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
< Replace
< Insert with duplicates
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< mask to extract lock type
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
< Size of the file
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
Definition at line 358 of file apr_brigade.c.
| 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.
Definition at line 556 of file apr_memcache.c.
| APU_DECLARE | ( | void | ) |
Computes SipHash-2-4, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key, into a possibly unaligned buffer (using the little endian representation as defined by the authors for interoperabilty) usable as a MAC.
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 |
< use pool pre cleanup
Definition at line 128 of file apr_sha1.c.
| apr_pool_t char ** baton |
Definition at line 250 of file apr_memcache.h.
Definition at line 130 of file apr_memcache.h.
| const char const apr_size_t data_len |
Definition at line 131 of file apr_memcache.h.
| apr_pool_t apr_pool_t* data_pool |
Definition at line 279 of file apr_memcache.h.
| const char char const apr_size_t data_size |
Definition at line 294 of file apr_memcache.h.
Definition at line 234 of file apr_memcache.h.
Definition at line 155 of file apr_memcache.h.
Definition at line 184 of file apr_memcache.h.
Definition at line 249 of file apr_memcache.h.
| apr_pool_t const char char apr_size_t* len |
Definition at line 251 of file apr_memcache.h.
Definition at line 222 of file apr_memcache.h.
| apr_uint16_t max_servers |
Definition at line 233 of file apr_memcache.h.
Definition at line 161 of file apr_memcache.h.
Definition at line 220 of file apr_memcache.h.
Definition at line 193 of file apr_memcache.h.
Definition at line 352 of file apr_memcache.h.
| const char apr_int32_t apr_uint32_t* new_value |
Definition at line 365 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 224 of file apr_memcache.h.
Definition at line 353 of file apr_memcache.h.
| apr_pool_t * p |
Definition at line 248 of file apr_memcache.h.
| const char apr_port_t port |
Definition at line 185 of file apr_memcache.h.
| apr_memcache_server_t* server |
Definition at line 173 of file apr_memcache.h.
Definition at line 221 of file apr_memcache.h.
| apr_pool_t apr_memcache_stats_t** stats |
Definition at line 435 of file apr_memcache.h.
| apr_pool_t* temp_pool |
Definition at line 278 of file apr_memcache.h.
Definition at line 295 of file apr_memcache.h.
Definition at line 223 of file apr_memcache.h.
| apr_pool_t apr_pool_t apr_hash_t * values |
Definition at line 265 of file apr_memcache.h.