mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-14 08:50:53 +08:00
25 lines
596 B
C++
25 lines
596 B
C++
#pragma once
|
|
#include <vector>
|
|
#include "acl_cpp/acl_cpp_define.hpp"
|
|
#include "acl_cpp/stdlib/string.hpp"
|
|
|
|
namespace acl {
|
|
|
|
class redis_key
|
|
{
|
|
public:
|
|
redis_key() {}
|
|
~redis_key() {}
|
|
|
|
bool del_keys(const char* first_key, ...) ACL_CPP_PRINTF(2, 3);
|
|
int get_keys(const char* pattern, std::vector<acl::string>& out);
|
|
bool if_exists(const char* key);
|
|
redis_key_t get_key_type(const char* key);
|
|
bool set_ttl(const char* key, int n);
|
|
int get_ttl(const char* key);
|
|
bool set_expireat(const char* key, time_t stamp);
|
|
bool set_persist(const char*);
|
|
};
|
|
|
|
} // namespace acl
|