acl
3.5.3.0
|
#include <redis_client_pipeline.hpp>
Public 成员函数 | |
redis_client_pipeline (const char *addr) | |
~redis_client_pipeline (void) | |
void | start_thread (void) |
void | stop_thread (void) |
const redis_result * | run (redis_pipeline_message &msg) |
void | push (redis_pipeline_message *msg) |
redis_client_pipeline & | set_password (const char *passwd) |
redis_client_pipeline & | set_timeout (int conn_timeout, int rw_timeout) |
redis_client_pipeline & | set_retry (bool on) |
redis_client_pipeline & | set_max_slot (int max_slot) |
redis_client_pipeline & | set_preconnect (bool yes) |
int | get_max_slot (void) const |
Public 成员函数 继承自 acl::acl::thread | |
thread (void) | |
virtual | ~thread (void) |
bool | start (bool sync=false) |
bool | wait (void **out=NULL) |
thread & | set_detachable (bool yes) |
thread & | set_stacksize (size_t size) |
unsigned long | thread_id (void) const |
Public 成员函数 继承自 acl::acl::thread_job | |
thread_job (void) | |
virtual | ~thread_job (void) |
virtual void | init (void) |
Protected 成员函数 | |
void * | run (void) |
Protected 成员函数 继承自 acl::acl::noncopyable | |
noncopyable () | |
~noncopyable () | |
额外继承的成员函数 | |
静态 Public 成员函数 继承自 acl::acl::thread | |
static unsigned long | thread_self (void) |
static unsigned long | self (void) |
redis pipline communication, be set and used in redis_command to improve the performance of redis commands, but not all redis commands in acl can be used in pipeline mode, such as below:
在文件 redis_client_pipeline.hpp 第 196 行定义.
acl::redis_client_pipeline::redis_client_pipeline | ( | const char * | addr | ) |
acl::redis_client_pipeline::~redis_client_pipeline | ( | void | ) |
|
inline |
在文件 redis_client_pipeline.hpp 第 231 行定义.
void acl::redis_client_pipeline::push | ( | redis_pipeline_message * | msg | ) |
const redis_result* acl::redis_client_pipeline::run | ( | redis_pipeline_message & | msg | ) |
|
protectedvirtual |
实现了 acl::acl::thread_job.
redis_client_pipeline& acl::redis_client_pipeline::set_max_slot | ( | int | max_slot | ) |
redis_client_pipeline& acl::redis_client_pipeline::set_password | ( | const char * | passwd | ) |
redis_client_pipeline& acl::redis_client_pipeline::set_preconnect | ( | bool | yes | ) |
redis_client_pipeline& acl::redis_client_pipeline::set_retry | ( | bool | on | ) |
redis_client_pipeline& acl::redis_client_pipeline::set_timeout | ( | int | conn_timeout, |
int | rw_timeout | ||
) |
void acl::redis_client_pipeline::start_thread | ( | void | ) |
void acl::redis_client_pipeline::stop_thread | ( | void | ) |