#pragma once #include "acl_cpp/acl_cpp_define.hpp" #include #include "acl_cpp/stdlib/string.hpp" #include "acl_cpp/redis/redis_command.hpp" namespace acl { class redis_client; class ACL_CPP_API redis_hyperloglog : public redis_command { public: redis_hyperloglog(redis_client* conn = NULL); ~redis_hyperloglog(); int pfadd(const char* key, const char* first_element, ...); int pfadd(const char* key, const std::vector& elements); int pfadd(const char* key, const std::vector& elements); int pfcount(const char* first_key, ...); int pfcount(const std::vector& keys); int pfcount(const std::vector& keys); bool pfmerge(const char* dst, const char* first_src, ...); bool pfmerge(const char* dst, const std::vector& keys); bool pfmerge(const char* dst, const std::vector& keys); }; } // namespace acl