kevy4.0

PUBLISH

Post a message to a channel; returns the receiver count.

PUBLISH channel message
Group
Pub/Sub
Since
1.0.0
Arity
exactly 3
Flags
readonly pubsub

Complexity

O(1) channel lookup + O(P) — a linear walk of the registered patterns with one glob match each, even when none match. Delivery fans out only to the shards holding a subscriber

Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.

Redis compatibility

Compatible

Behaves as Redis does.

See also

PSUBSCRIBEPUNSUBSCRIBESUBSCRIBEUNSUBSCRIBE

← All commands