mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 02:15:45 +02:00
more work on rdb load.
1. Added support of loading of compressed strings. 2. Verified we load expiry info. 3. Extended supported expiry period to 4 years (previously I set 1 year).
This commit is contained in:
parent
cafabce161
commit
997d2dcb69
16 changed files with 104 additions and 29 deletions
|
@ -287,4 +287,13 @@ auto BaseFamilyTest::AddFindConn(Protocol proto, std::string_view id) -> TestCon
|
|||
return it->second.get();
|
||||
}
|
||||
|
||||
RespVec BaseFamilyTest::Array(const RespExpr& expr) {
|
||||
CHECK(expr.type == RespExpr::ARRAY || expr.type == RespExpr::NIL_ARRAY);
|
||||
if (expr.type == RespExpr::NIL_ARRAY)
|
||||
return RespVec{};
|
||||
|
||||
const RespVec* src = get<RespVec*>(expr.u);
|
||||
return *src;
|
||||
}
|
||||
|
||||
} // namespace dfly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue