feat(redis): add Pub/Sub publish and subscribe with WebSocket real-time push

This commit is contained in:
t8y2 committed 2026-06-15 01:40:06 +08:00
1 parent abc7136ed2
commit ef426a8218
26 files changed
+904 -11

No files matched your search

+4
View File
@@ -1354,6 +1354,10 @@ export async function redisLoadMore(connectionId: string, db: number, keyRaw: st
return post("/api/redis/load-more", { connectionId, db, keyRaw, keyType, cursor, count });
}
export async function redisPubSubPublish(connectionId: string, db: number, channel: string, message: string): Promise<{ subscribers: number }> {
return post("/api/redis/pubsub/publish", { connectionId, db, channel, message });
}
// ---------------------------------------------------------------------------
// etcd
// ---------------------------------------------------------------------------