|
Apache HTTPD
|
Classes | |
| struct | apr_redis_server_t |
| struct | apr_redis_t |
| struct | apr_redis_stats_t |
Enumerations | |
| enum | apr_redis_server_status_t { APR_RC_SERVER_LIVE , APR_RC_SERVER_DEAD } |
| enum | apr_redis_server_role_t { APR_RS_SERVER_MASTER , APR_RS_SERVER_SLAVE , APR_RS_SERVER_UNKNOWN } |
Opaque redis client connection object
Definition at line 71 of file apr_redis.h.
| typedef apr_uint32_t(* apr_redis_hash_func) (void *baton, const char *data, const apr_size_t data_len) |
Definition at line 107 of file apr_redis.h.
| typedef apr_redis_server_t *(* apr_redis_server_func) (void *baton, apr_redis_t *rc, const apr_uint32_t hash) |
Definition at line 115 of file apr_redis.h.
Redis Server Info Object
Definition at line 74 of file apr_redis.h.
Definition at line 100 of file apr_redis.h.
| Enumerator | |
|---|---|
| APR_RS_SERVER_MASTER | Server is a master |
| APR_RS_SERVER_SLAVE | Server is a slave |
| APR_RS_SERVER_UNKNOWN | Server role is unknown |
Definition at line 373 of file apr_redis.h.
Specifies the status of a redis server
| Enumerator | |
|---|---|
| APR_RC_SERVER_LIVE | Server is alive and responding to requests |
| APR_RC_SERVER_DEAD | Server is not responding to requests |
Definition at line 64 of file apr_redis.h.
| APU_DECLARE | ( | apr_redis_server_t * | ) |
Picks a server based on a hash
| rc | The redis 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
| rc | The redis 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
| rc | The redis client object to use |
| server | Server to add |
Enables a Server for use again
| rc | The redis client object to use |
| rs | Server to Activate |
Disable a Server
| rc | The redis client object to use |
| rs | 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 |
| rwto | r/w timeout value in seconds of a client connection |
| ns | location of the new server object |
Creates a new redisd client object
| p | Pool to use |
| max_servers | maximum number of servers |
| flags | Not currently used |
| rc | location of the new redis client object |
Gets a value from the server, allocating the value out of p
| rc | 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 |
Sets a value by key on the server
| rc | client to use |
| key | null terminated string containing the key |
| baton | data to store on the server |
| data_size | length of data at baton |
| flags | any flags set by the client for this key |
Sets a value by key on the server
| rc | 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 |
Deletes a key from a server
| rc | client to use |
| key | null terminated string containing the key |
| timeout | time for the delete to stop other clients from adding |
Query a server's version
| rs | server to query |
| p | Pool to allocate answer from |
| baton | location to store server version string |
Query a server's INFO
| rs | server to query |
| p | Pool to allocate answer from |
| baton | location to store server INFO response string |
Increments a value
| rc | client to use |
| key | null terminated string containing the key |
| inc | number to increment by |
| new_value | new value after incrementing |
Decrements a value
| rc | client to use |
| key | null terminated string containing the key |
| inc | number to decrement by |
| new_value | new value after decrementing |
Pings the server
| rs | Server to ping |
Gets multiple values from the server, allocating the values out of p
| rc | 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_redis_value_t keyed by strings, contains the result of the multiget call. |
Query a server for statistics
| rs | 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
| rc | The redis 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 142 of file apr_memcache.c.
| apr_pool_t char ** baton |
Definition at line 264 of file apr_redis.h.
Definition at line 142 of file apr_redis.h.
| const char const apr_size_t data_len |
Definition at line 143 of file apr_redis.h.
| apr_pool_t apr_pool_t* data_pool |
Definition at line 370 of file apr_redis.h.
| const char char const apr_size_t data_size |
Definition at line 279 of file apr_redis.h.
Definition at line 248 of file apr_redis.h.
| apr_redis_t const apr_uint32_t hash |
Definition at line 167 of file apr_redis.h.
Definition at line 196 of file apr_redis.h.
| const char apr_int32_t inc |
Definition at line 337 of file apr_redis.h.
Definition at line 263 of file apr_redis.h.
| apr_pool_t const char char apr_size_t* len |
Definition at line 265 of file apr_redis.h.
Definition at line 235 of file apr_redis.h.
| apr_uint16_t max_servers |
Definition at line 247 of file apr_redis.h.
Definition at line 233 of file apr_redis.h.
| const char apr_int32_t apr_uint32_t * new_value |
Definition at line 338 of file apr_redis.h.
| const char apr_port_t apr_uint32_t apr_uint32_t apr_uint32_t apr_uint32_t apr_uint32_t apr_redis_server_t** ns |
Definition at line 238 of file apr_redis.h.
| apr_pool_t * p |
Definition at line 262 of file apr_redis.h.
| const char apr_port_t port |
Definition at line 197 of file apr_redis.h.
Definition at line 173 of file apr_redis.h.
| apr_redis_server_t * rs |
Definition at line 205 of file apr_redis.h.
Definition at line 237 of file apr_redis.h.
| apr_redis_server_t* server |
Definition at line 185 of file apr_redis.h.
Definition at line 234 of file apr_redis.h.
| apr_pool_t apr_redis_stats_t** stats |
Definition at line 451 of file apr_redis.h.
| apr_pool_t* temp_pool |
Definition at line 369 of file apr_redis.h.
Definition at line 295 of file apr_redis.h.
Definition at line 236 of file apr_redis.h.
| apr_pool_t apr_pool_t apr_hash_t* values |
Definition at line 371 of file apr_redis.h.