acl/lib_acl_cpp/include/acl_cpp/redis/redis_command.hpp
2015-01-23 17:23:04 +08:00

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