From c3a869c528e107259bf5d1055f2f80b124f0d31f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Tue, 26 Nov 2024 10:12:52 +0100 Subject: [PATCH] Minor documentation improvements --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0bf684a..bc30f7b 100644 --- a/README.md +++ b/README.md @@ -242,8 +242,8 @@ library is currently limited to single arguments for each of these methods in order to match exactly one response to each command request. As an alternative, the methods can simply be invoked multiple times with one argument each. -Additionally, can listen for the following PubSub events to get notifications -about subscribed/unsubscribed channels and patterns: +Additionally, you can listen for the following PubSub events to get +notifications about subscribed/unsubscribed channels and patterns: ```php $redis->on('subscribe', function (string $channel, int $total) { @@ -261,7 +261,7 @@ $redis->on('punsubscribe', function (string $pattern, int $total) { ``` When the underlying connection is lost, the `unsubscribe` and `punsubscribe` events -will be invoked automatically. This gives you control over re-subscribing to the +will be invoked automatically. This gives you control over re-subscribing to any channels and patterns as appropriate. ## API @@ -319,7 +319,7 @@ will not have to wait for an actual underlying connection. #### __construct() -The `new RedisClient(string $url, ConnectorInterface $connector = null, LoopInterface $loop = null)` constructor can be used to +The `new RedisClient(string $url, ConnectorInterface $connector = null)` constructor can be used to create a new `RedisClient` instance. The `$url` can be given in the