From 5a39b3564e5010d7c8bcf28e4f80ffebef23b0db Mon Sep 17 00:00:00 2001 From: 1993heqiang <531364804@qq.com> Date: Wed, 22 Mar 2023 19:53:19 +0800 Subject: [PATCH] Format example code in 'Publishing (Sending Messages)' section of ref doc. Closed #2533 --- src/main/asciidoc/reference/redis-messaging.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/asciidoc/reference/redis-messaging.adoc b/src/main/asciidoc/reference/redis-messaging.adoc index 6dc2a26c0..33f246677 100644 --- a/src/main/asciidoc/reference/redis-messaging.adoc +++ b/src/main/asciidoc/reference/redis-messaging.adoc @@ -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"); ----