mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
chore: pass SinkReplyBuilder and Transaction explicitly. Part2 (#3954)
This pr follows #3946 Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
c5a8008348
commit
e24f697bb3
4 changed files with 275 additions and 279 deletions
|
@ -109,6 +109,14 @@ std::ostream& operator<<(std::ostream& os, const GlobalState& state);
|
|||
|
||||
enum class TimeUnit : uint8_t { SEC, MSEC };
|
||||
|
||||
enum ExpireFlags {
|
||||
EXPIRE_ALWAYS = 0,
|
||||
EXPIRE_NX = 1 << 0, // Set expiry only when key has no expiry
|
||||
EXPIRE_XX = 1 << 2, // Set expiry only when the key has expiry
|
||||
EXPIRE_GT = 1 << 3, // GT: Set expiry only when the new expiry is greater than current one
|
||||
EXPIRE_LT = 1 << 4, // LT: Set expiry only when the new expiry is less than current one
|
||||
};
|
||||
|
||||
bool ParseHumanReadableBytes(std::string_view str, int64_t* num_bytes);
|
||||
bool ParseDouble(std::string_view src, double* value);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue