Redis "Scan all" button

This commit is contained in:
SPRINX0\prochazka
2025-08-26 10:48:19 +02:00
parent 003dec269a
commit d3872ca8a3
3 changed files with 23 additions and 6 deletions

View File

@@ -203,7 +203,7 @@ const driver = {
async scanKeys(dbhan, pattern, cursor = 0, count) {
const match = pattern?.match(/[\?\[\{]/) ? pattern : pattern ? `*${pattern}*` : '*';
const [nextCursor, keys] = await dbhan.client.scan(cursor, 'MATCH', match, 'COUNT', count);
const [nextCursor, keys] = await dbhan.client.scan(cursor, 'MATCH', match, 'COUNT', count ?? 2 ** 32);
const dbsize = await dbhan.client.dbsize();
const keysMapped = keys.map((key) => ({
key,