feat: ReJson/TairJson support
- string.ts: rejsonGet, rejsonSet, rejsonDel using JSON.GET/SET/DEL - IPC + preload for rejsonGet/rejsonSet - New ReJsonEditor.vue: Monaco JSON editor with JSON.GET/SET - KeyDetail: dispatch ReJSON-RL/json/tair-json types to ReJsonEditor
This commit is contained in:
@@ -159,6 +159,14 @@ export function registerIpcHandlers(): void {
|
||||
await redis.setStringValue(id, key, value)
|
||||
}))
|
||||
|
||||
// ReJson
|
||||
ipcMain.handle('redis:rejsonGet', async (_e, id: string, key: string, path: string) => {
|
||||
return redis.rejsonGet(id, key, path)
|
||||
})
|
||||
ipcMain.handle('redis:rejsonSet', withLog('JSON.SET', async (_e, id: string, key: string, path: string, value: string) => {
|
||||
await redis.rejsonSet(id, key, path, value)
|
||||
}))
|
||||
|
||||
// Redis - Hash
|
||||
ipcMain.handle('redis:hashScan', async (_e, id: string, key: string, cursor: string, count: number) => {
|
||||
return redis.getHashFields(id, key, cursor, count)
|
||||
|
||||
Reference in New Issue
Block a user