mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 02:15:45 +02:00
chore: serialize SBF (#2846)
* chore: serialize SBF SAVE/LOAD supports SBF now. Also fixes MallocUsed for SBF. --------- Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
b1e688b33f
commit
57d567639c
8 changed files with 107 additions and 4 deletions
|
@ -534,4 +534,12 @@ TEST_F(RdbTest, RedisJson) {
|
|||
"{\"company\":\"DragonflyDB\",\"product\":\"Dragonfly\",\"website\":\"https://"
|
||||
"dragondlydb.io\",\"years-active\":[2021,2022,2023,2024,\"and more!\"]}");
|
||||
}
|
||||
|
||||
TEST_F(RdbTest, SBF) {
|
||||
EXPECT_THAT(Run({"BF.ADD", "k", "1"}), IntArg(1));
|
||||
Run({"debug", "reload"});
|
||||
EXPECT_EQ(Run({"type", "k"}), "MBbloom--");
|
||||
EXPECT_THAT(Run({"BF.EXISTS", "k", "1"}), IntArg(1));
|
||||
}
|
||||
|
||||
} // namespace dfly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue