2 #include "../acl_cpp_define.hpp" 4 #include "../stdlib/string.hpp" 7 #if !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE) 46 bool bgrewriteaof(
void);
62 bool client_getname(
string& buf);
69 bool client_kill(
const char* addr);
76 int client_list(
string& buf);
84 bool client_setname(
const char*
name);
93 int config_get(
const char* parameter, std::map<string, string>& out);
99 bool config_resetstat(
void);
105 bool config_rewrite(
void);
113 bool config_set(
const char*
name,
const char* value);
140 int info(
string& buf);
147 int info(std::map<string, string>& out);
153 time_t lastsave(
void);
168 bool get_command(
string& buf);
181 void shutdown(
bool save_data =
true);
189 bool slaveof(
const char* ip,
int port);
202 int slowlog_len(
void);
208 bool slowlog_reset(
void);
215 bool get_time(time_t& stamp,
int&
escape);
220 #endif // !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE)
HTTP_API void const char * name
#define ACL_CPP_DEPRECATED
ACL_CPP_API void escape(const char *in, size_t len, string &out)