2015-01-19 00:03:30 +08:00
|
|
|
#pragma once
|
|
|
|
#include "acl_cpp/acl_cpp_define.hpp"
|
2015-01-20 00:10:17 +08:00
|
|
|
#include "acl_cpp/redis/redis_command.hpp"
|
2015-01-19 00:03:30 +08:00
|
|
|
|
|
|
|
namespace acl
|
|
|
|
{
|
|
|
|
|
|
|
|
class redis_client;
|
|
|
|
class redis_result;
|
|
|
|
|
2015-01-20 00:10:17 +08:00
|
|
|
class ACL_CPP_API redis_connection : public redis_command
|
2015-01-19 00:03:30 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
redis_connection(redis_client* conn = NULL);
|
|
|
|
~redis_connection();
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
bool auth(const char* passwd);
|
|
|
|
bool select(int dbnum);
|
|
|
|
bool ping();
|
|
|
|
bool echo(const char* s);
|
|
|
|
bool quit();
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace acl
|