DATAREDIS-1225 - Fix typos in reference documentation.

Original pull request: #560.
This commit is contained in:
Yanis Batura
2020-09-07 17:43:46 +07:00
committed by Mark Paluch
parent 67fc916512
commit 19ebb73051

View File

@@ -54,14 +54,14 @@ The message listener container itself does not require external threading resour
ReactiveRedisConnectionFactory factory = …
ReactiveRedisMessageListenerContainer container = new ReactiveRedisMessageListenerContainer(factory);
Flux<ChannelMessage<String, String>> stream = container.receive(ChannelTopic.of("my-chanel"));
Flux<ChannelMessage<String, String>> stream = container.receive(ChannelTopic.of("my-channel"));
----
[[redis:reactive:pubsub:subscribe:template]]
=== Subscribing via template API
As mentioned above you can directly use `ReactiveRedisTemplate` to subscribe to channels / patterns. This approach
offers a straight forward, though limited solution as you loose the option to add subscriptions after the initial
offers a straight forward, though limited solution as you lose the option to add subscriptions after the initial
ones. Nevertheless you still can control the message stream via the returned `Flux` using eg. `take(Duration)`. When
done reading, on error or cancellation all bound resources are freed again.