Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/main/asciidoc/reference/redis-messaging.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ To publish a message, you can use, as with the other operations, either the low-
// send message through connection RedisConnection con = ...
byte[] msg = ...
byte[] channel = ...
con.publish(msg, channel); // send message through RedisTemplate
con.publish(msg, channel);

// send message through RedisTemplate
RedisTemplate template = ...
Long numberOfClients = template.convertAndSend("hello!", "world");
----
Expand Down