redis key tree

This commit is contained in:
Jan Prochazka
2022-03-05 18:58:13 +01:00
parent 51942be0a6
commit 5eba93559d
3 changed files with 25 additions and 5 deletions

View File

@@ -102,6 +102,7 @@ const driver = {
res[keySplit[rootSplit.length]] = {
text: keySplit[rootSplit.length],
type: 'dir',
root: keySplit.slice(0, rootSplit.length + 1).join(':'),
};
}
}