mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-15 09:20:52 +08:00
34 lines
609 B
C++
34 lines
609 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_;
|
|
|
|
const redis_result** scan_keys(const char* cmd, const char* key,
|
|
int& cursor, size_t& size, const char* pattern,
|
|
const size_t* count);
|
|
};
|
|
|
|
} // namespace acl
|