feat(phase4e): batch delete with multi-select
- KeyList: multi-select mode with checkbox toggle - Batch delete bar shows selected count + delete button - RedisService: batchDelete using pipeline - Preload: batchDelete IPC channel
This commit is contained in:
Vendored
+1
@@ -86,6 +86,7 @@ export interface ElectronAPI {
|
||||
slowLogGet: (id: string, count: number) => Promise<any[]>
|
||||
slowLogLen: (id: string) => Promise<number>
|
||||
memoryUsage: (id: string, key: string) => Promise<number | null>
|
||||
batchDelete: (id: string, keys: string[]) => Promise<number>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -92,6 +92,8 @@ const electronAPI = {
|
||||
// Memory
|
||||
memoryUsage: (id: string, key: string): Promise<number | null> =>
|
||||
ipcRenderer.invoke('redis:memoryUsage', id, key),
|
||||
batchDelete: (id: string, keys: string[]): Promise<number> =>
|
||||
ipcRenderer.invoke('redis:batchDelete', id, keys),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user