feat(redis): add Pub/Sub publish and subscribe with WebSocket real-time push
This commit is contained in:
1 parent
abc7136ed2
commit
ef426a8218
26 files changed
+904
-11
No files matched your search
@@ -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
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user