redis key browser works

This commit is contained in:
Jan Prochazka
2022-03-07 20:55:29 +01:00
parent 78faa94d77
commit 9b396e7431
10 changed files with 205 additions and 29 deletions

View File

@@ -182,7 +182,7 @@ const driver = {
const type = await pool.type(key);
switch (type) {
case 'list': {
const res = await pool.lrange(key, cursor, start + count);
const res = await pool.lrange(key, cursor, cursor + count);
return {
cursor: res.length > count ? cursor + count : 0,
items: res.map((value) => ({ value })).slice(0, count),