Files
micro-service-api/node_modules/@redis/client/dist/lib/commands/SPUBLISH.js
2025-11-11 12:36:06 +07:00

20 lines
634 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: true,
/**
* Constructs the SPUBLISH command to post a message to a Sharded Pub/Sub channel
*
* @param parser - The command parser
* @param channel - The channel to publish to
* @param message - The message to publish
* @see https://redis.io/commands/spublish/
*/
parseCommand(parser, channel, message) {
parser.push('SPUBLISH');
parser.pushKey(channel);
parser.push(message);
},
transformReply: undefined
};
//# sourceMappingURL=SPUBLISH.js.map