mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-14 08:50:53 +08:00
27 lines
596 B
C++
27 lines
596 B
C++
#pragma once
|
||
#include "acl_cpp/acl_cpp_define.hpp"
|
||
#include "acl_cpp/connpool/connect_manager.hpp"
|
||
|
||
namespace acl
|
||
{
|
||
|
||
class ACL_CPP_API redis_manager : public connect_manager
|
||
{
|
||
public:
|
||
redis_manager();
|
||
virtual ~redis_manager();
|
||
|
||
protected:
|
||
/**
|
||
* 基类纯虚函数,用来创建连接池对象
|
||
* @param addr {const char*} 服务器监听地址,格式:ip:port
|
||
* @param count {int} 连接池的大小限制
|
||
* @param idx {size_t} 该连接池对象在集合中的下标位置(从 0 开始)
|
||
*/
|
||
virtual acl::connect_pool* create_pool(const char* addr,
|
||
int count, size_t idx);
|
||
private:
|
||
};
|
||
|
||
} // namespace acl
|