mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-14 17:00:52 +08:00
53583d8a9d
client software.
32 lines
698 B
C++
32 lines
698 B
C++
#pragma once
|
||
#include "../acl_cpp_define.hpp"
|
||
#include "../connpool/connect_manager.hpp"
|
||
|
||
#ifndef ACL_CLIENT_ONLY
|
||
|
||
namespace acl
|
||
{
|
||
|
||
/**
|
||
* memcache 客户端请求连接池管理类
|
||
*/
|
||
class ACL_CPP_API memcache_manager : public connect_manager
|
||
{
|
||
public:
|
||
memcache_manager();
|
||
virtual ~memcache_manager();
|
||
|
||
protected:
|
||
/**
|
||
* 基类纯虚函数,用来创建连接池对象
|
||
* @param addr {const char*} 服务器监听地址,格式:ip:port
|
||
* @param count {size_t} 连接池的大小限制,该值为 0 时没有限制
|
||
* @param idx {size_t} 该连接池对象在集合中的下标位置(从 0 开始)
|
||
*/
|
||
connect_pool* create_pool(const char* addr, size_t count, size_t idx);
|
||
};
|
||
|
||
} // namespace acl
|
||
|
||
#endif // ACL_CLIENT_ONLY
|