Skip to content

Minor documentation improvements #162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down