mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-12 02:45:45 +02:00
chore(hset): Get rid of helper functions in header file. (#341)
Move them to cc.
This commit is contained in:
parent
08779b154b
commit
21feebe47b
2 changed files with 498 additions and 526 deletions
File diff suppressed because it is too large
Load diff
|
@ -22,7 +22,6 @@ class HSetFamily {
|
||||||
static uint32_t MaxListPackLen();
|
static uint32_t MaxListPackLen();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
enum GetAllMode : uint8_t { FIELDS = 1, VALUES = 2 };
|
|
||||||
|
|
||||||
static void HDel(CmdArgList args, ConnectionContext* cntx);
|
static void HDel(CmdArgList args, ConnectionContext* cntx);
|
||||||
static void HLen(CmdArgList args, ConnectionContext* cntx);
|
static void HLen(CmdArgList args, ConnectionContext* cntx);
|
||||||
|
@ -41,30 +40,6 @@ class HSetFamily {
|
||||||
static void HRandField(CmdArgList args, ConnectionContext* cntx);
|
static void HRandField(CmdArgList args, ConnectionContext* cntx);
|
||||||
|
|
||||||
static void HGetGeneric(CmdArgList args, ConnectionContext* cntx, uint8_t getall_mask);
|
static void HGetGeneric(CmdArgList args, ConnectionContext* cntx, uint8_t getall_mask);
|
||||||
|
|
||||||
static OpResult<uint32_t> OpSet(const OpArgs& op_args, std::string_view key, CmdArgList values,
|
|
||||||
bool skip_if_exists);
|
|
||||||
static OpResult<uint32_t> OpDel(const OpArgs& op_args, std::string_view key, CmdArgList values);
|
|
||||||
|
|
||||||
using OptStr = std::optional<std::string>;
|
|
||||||
static OpResult<std::vector<OptStr>> OpMGet(const OpArgs& op_args, std::string_view key,
|
|
||||||
CmdArgList fields);
|
|
||||||
|
|
||||||
static OpResult<uint32_t> OpLen(const OpArgs& op_args, std::string_view key);
|
|
||||||
|
|
||||||
static OpResult<std::string> OpGet(const OpArgs& op_args, std::string_view key,
|
|
||||||
std::string_view field);
|
|
||||||
|
|
||||||
static OpResult<std::vector<std::string>> OpGetAll(const OpArgs& op_args, std::string_view key,
|
|
||||||
uint8_t getall_mask);
|
|
||||||
static OpResult<size_t> OpStrLen(const OpArgs& op_args, std::string_view key,
|
|
||||||
std::string_view field);
|
|
||||||
|
|
||||||
using IncrByParam = std::variant<double, int64_t>;
|
|
||||||
static OpStatus OpIncrBy(const OpArgs& op_args, std::string_view key, std::string_view field,
|
|
||||||
IncrByParam* param);
|
|
||||||
|
|
||||||
static OpResult<StringVec> OpScan(const OpArgs& op_args, std::string_view key, uint64_t* cursor);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace dfly
|
} // namespace dfly
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue