fix: memory analysis dark mode stripe, scan speed, and NaN total size
- Dark mode: add --el-fill-color-lighter and --el-table-current-row-bg-color to .el-table overrides so striped rows render with proper contrast - Scan speed: add batchKeyMemoryUsage pipeline (TYPE + MEMORY USAGE in one Redis round-trip instead of 2×N sequential IPC calls) - Scan speed: decouple scan loop from UI via 300ms flush buffer, keeping el-table re-render frequency capped at ~3/s - Scan speed: use shallowRef for entries to skip deep reactive proxies - NaN fix: handle ioredis stringNumbers:true by converting via Number() instead of typeof === 'number' - formatSize: guard against non-finite input, add TB/PB units
This commit is contained in:
@@ -149,6 +149,9 @@ export function registerIpcHandlers(): void {
|
||||
ipcMain.handle('redis:memoryUsage', async (_e, id: string, key: string) => {
|
||||
return redis.memoryUsage(id, key)
|
||||
})
|
||||
ipcMain.handle('redis:batchMemoryUsage', async (_e, id: string, keys: string[]) => {
|
||||
return redis.batchKeyMemoryUsage(id, keys)
|
||||
})
|
||||
|
||||
// Redis - String
|
||||
ipcMain.handle('redis:getString', async (_e, id: string, key: string) => {
|
||||
|
||||
Reference in New Issue
Block a user