feat(redis): download large Redis values

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-09-30 18:57:37 +08:00
1 parent 0292d4c984
commit 43b6e218b0
19 files changed
+166 -4

No files matched your search

+1
View File
@@ -583,6 +583,7 @@ export const redisScanKeys = forward("redisScanKeys");
export const redisScanKeysBatch = forward("redisScanKeysBatch");
export const redisScanValues = forward("redisScanValues");
export const redisGetValue = forward("redisGetValue");
export const redisGetRawValue = forward("redisGetRawValue");
export const redisGetTtl = forward("redisGetTtl");
export const redisGetStreamEntries = forward("redisGetStreamEntries");
export const redisGetStreamGroups = forward("redisGetStreamGroups");
+5
View File
@@ -110,6 +110,7 @@ import type {
DownloadedUpdate,
UpdateDownloadSource,
RedisCollectionPage,
RedisBlob,
RedisDatabaseInfo,
RedisStreamConsumer,
RedisStreamGroup,
@@ -3556,6 +3557,10 @@ export async function redisGetValue(connectionId: string, db: number, keyRaw: st
return post("/api/redis/get-value", { connectionId, db, keyRaw });
}
export async function redisGetRawValue(connectionId: string, db: number, keyRaw: string): Promise<RedisBlob> {
return post("/api/redis/get-raw-value", { connectionId, db, keyRaw });
}
export async function redisGetTtl(connectionId: string, db: number, keyRaw: string): Promise<number> {
return post("/api/redis/get-ttl", { connectionId, db, keyRaw });
}
+4
View File
@@ -3412,6 +3412,10 @@ export async function redisGetValue(connectionId: string, db: number, keyRaw: st
return invoke("redis_get_value", { connectionId, db, keyRaw });
}
export async function redisGetRawValue(connectionId: string, db: number, keyRaw: string): Promise<RedisBlob> {
return invoke("redis_get_raw_value", { connectionId, db, keyRaw });
}
export async function redisGetTtl(connectionId: string, db: number, keyRaw: string): Promise<number> {
return invoke("redis_get_ttl", { connectionId, db, keyRaw });
}