MCPcopy Create free account
hub / github.com/F-Stack/f-stack / RM_PublishMessage

Function RM_PublishMessage

app/redis-6.2.6/src/module.c:2018–2024  ·  view source on GitHub ↗

Publish a message to subscribers (see PUBLISH command). */

Source from the content-addressed store, hash-verified

2016
2017/* Publish a message to subscribers (see PUBLISH command). */
2018int RM_PublishMessage(RedisModuleCtx *ctx, RedisModuleString *channel, RedisModuleString *message) {
2019 UNUSED(ctx);
2020 int receivers = pubsubPublishMessage(channel, message);
2021 if (server.cluster_enabled)
2022 clusterPropagatePublish(channel, message);
2023 return receivers;
2024}
2025
2026/* Return the currently selected DB. */
2027int RM_GetSelectedDb(RedisModuleCtx *ctx) {

Callers

nothing calls this directly

Calls 2

pubsubPublishMessageFunction · 0.85
clusterPropagatePublishFunction · 0.85

Tested by

no test coverage detected