tree loader

This commit is contained in:
SPRINX0\prochazka
2025-05-14 10:32:42 +02:00
parent 0af38c6e0e
commit b16b02c3f1
5 changed files with 56 additions and 42 deletions

View File

@@ -203,6 +203,7 @@ const driver = {
async scanKeys(dbhan, pattern, cursor = 0, count) {
const [nextCursor, keys] = await dbhan.client.scan(cursor, 'MATCH', pattern || '*', 'COUNT', count);
const dbsize = await dbhan.client.dbsize();
const keysMapped = keys.map((key) => ({
key,
}));
@@ -210,6 +211,7 @@ const driver = {
return {
nextCursor,
keys: keysMapped,
dbsize,
};
},