mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-14 00:40:55 +08:00
30 lines
464 B
C++
30 lines
464 B
C++
|
#pragma once
|
||
|
#include "acl_cpp/acl_cpp_define.hpp"
|
||
|
|
||
|
namespace acl
|
||
|
{
|
||
|
|
||
|
class redis_client;
|
||
|
class redis_result;
|
||
|
|
||
|
class ACL_CPP_API redis_command
|
||
|
{
|
||
|
public:
|
||
|
redis_command(redis_client* conn = NULL);
|
||
|
virtual ~redis_command() = 0;
|
||
|
|
||
|
void reset();
|
||
|
void set_client(redis_client* conn);
|
||
|
redis_client* get_client() const
|
||
|
{
|
||
|
return conn_;
|
||
|
}
|
||
|
|
||
|
const redis_result* get_result() const;
|
||
|
|
||
|
protected:
|
||
|
redis_client* conn_;
|
||
|
};
|
||
|
|
||
|
} // namespace acl
|