2015-03-27 17:05:12 +08:00
|
|
|
|
#pragma once
|
|
|
|
|
#include "acl_cpp/acl_cpp_define.hpp"
|
|
|
|
|
#include "acl_cpp/redis/redis_connection.hpp"
|
|
|
|
|
#include "acl_cpp/redis/redis_hash.hpp"
|
|
|
|
|
#include "acl_cpp/redis/redis_hyperloglog.hpp"
|
|
|
|
|
#include "acl_cpp/redis/redis_key.hpp"
|
|
|
|
|
#include "acl_cpp/redis/redis_list.hpp"
|
|
|
|
|
#include "acl_cpp/redis/redis_pubsub.hpp"
|
|
|
|
|
#include "acl_cpp/redis/redis_script.hpp"
|
|
|
|
|
#include "acl_cpp/redis/redis_server.hpp"
|
|
|
|
|
#include "acl_cpp/redis/redis_set.hpp"
|
|
|
|
|
#include "acl_cpp/redis/redis_string.hpp"
|
|
|
|
|
#include "acl_cpp/redis/redis_transaction.hpp"
|
|
|
|
|
#include "acl_cpp/redis/redis_zset.hpp"
|
2015-04-02 22:19:57 +08:00
|
|
|
|
#include "acl_cpp/redis/redis_cluster.hpp"
|
2015-03-27 17:05:12 +08:00
|
|
|
|
|
|
|
|
|
namespace acl
|
|
|
|
|
{
|
|
|
|
|
|
2015-03-29 19:27:41 +08:00
|
|
|
|
/**
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̳<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> redis <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>࣬<EFBFBD><EFBFBD><EFBFBD>˿<EFBFBD><EFBFBD><EFBFBD>ֻͨ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>е<EFBFBD> redis <EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* inherit all the redis command class, which include all the commands
|
|
|
|
|
* of Key, String, Hash, List, Set, SortedSet, Hyperloglog, Pub/Sub,
|
|
|
|
|
* Transaction, Script, Connection, Server.
|
|
|
|
|
*/
|
2015-03-27 17:05:12 +08:00
|
|
|
|
class ACL_CPP_API redis
|
|
|
|
|
: public redis_connection
|
|
|
|
|
, public redis_hash
|
|
|
|
|
, public redis_hyperloglog
|
|
|
|
|
, public redis_key
|
|
|
|
|
, public redis_list
|
|
|
|
|
, public redis_pubsub
|
|
|
|
|
, public redis_script
|
|
|
|
|
, public redis_server
|
|
|
|
|
, public redis_set
|
|
|
|
|
, public redis_string
|
|
|
|
|
, public redis_transaction
|
|
|
|
|
, public redis_zset
|
2015-04-02 22:19:57 +08:00
|
|
|
|
, public redis_cluster
|
2015-03-27 17:05:12 +08:00
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
redis(redis_client* conn = NULL);
|
2015-04-07 23:31:31 +08:00
|
|
|
|
redis(redis_client_cluster* cluster, size_t max_conns);
|
|
|
|
|
~redis() {}
|
2015-03-27 17:05:12 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace acl
|