feat(redis): implement pagination for Redis key scanning and enhance UI for loading more keys
This commit is contained in:
1 parent
753b72ebe4
commit
5c546f68af
9 files changed
+137
-40
No files matched your search
+7
-2
@@ -115,12 +115,17 @@ export interface RedisValue {
|
||||
value: any;
|
||||
}
|
||||
|
||||
export interface RedisScanResult {
|
||||
cursor: number;
|
||||
keys: RedisKeyInfo[];
|
||||
}
|
||||
|
||||
export async function redisListDatabases(connectionId: string): Promise<number[]> {
|
||||
return invoke("redis_list_databases", { connectionId });
|
||||
}
|
||||
|
||||
export async function redisScanKeys(connectionId: string, db: number, pattern: string, count: number): Promise<RedisKeyInfo[]> {
|
||||
return invoke("redis_scan_keys", { connectionId, db, pattern, count });
|
||||
export async function redisScanKeys(connectionId: string, db: number, cursor: number, pattern: string, count: number): Promise<RedisScanResult> {
|
||||
return invoke("redis_scan_keys", { connectionId, db, cursor, pattern, count });
|
||||
}
|
||||
|
||||
export async function redisGetValue(connectionId: string, key: string): Promise<RedisValue> {
|
||||
|
||||
Reference in new issue
Block a user