You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-55
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,7 @@ $client = new \Predis\Client([
103
103
);
104
104
$cache = new \Yiisoft\Cache\Redis\RedisCache($client);
105
105
```
106
+
106
107
Predis will route commands on its own when specifying Redis nodes in the cluster to the appropriate nodes depending on the keys that are specified in the commands.
107
108
108
109
You can implement `\Predis\Distribution\DistributorInterface` to create their own distributors used by the client to distribute keys among a cluster of servers.
@@ -132,64 +133,14 @@ $client = new \Predis\Client([
132
133
);
133
134
```
134
135
135
-
## Testing
136
-
137
-
> The tests use a connection to a running Redis cluster. If you are not using Docker, you must start the cluster yourself before running the tests.
138
-
139
-
### Unit testing
140
-
141
-
The package is tested with [PHPUnit](https://phpunit.de/). To run tests:
142
-
143
-
```shell
144
-
./vendor/bin/phpunit
145
-
```
146
-
147
-
### Mutation testing
148
-
149
-
The package tests are checked with [Infection](https://infection.github.io/) mutation framework with
150
-
[Infection Static Analysis Plugin](https://github.com/Roave/infection-static-analysis-plugin). To run it:
The code is statically analyzed with [Psalm](https://psalm.dev/). To run static analysis:
48
+
49
+
```shell
50
+
./vendor/bin/psalm
51
+
```
52
+
53
+
## Rector
54
+
55
+
Use [Rector](https://github.com/rectorphp/rector) to make codebase follow some specific rules or
56
+
use either newest or any specific version of PHP:
57
+
58
+
```shell
59
+
./vendor/bin/rector
60
+
```
61
+
62
+
## Composer require checker
63
+
64
+
This package uses [composer-require-checker](https://github.com/maglnet/ComposerRequireChecker) to check if all dependencies are correctly defined in `composer.json`.
65
+
66
+
To run the checker, execute the following command:
0 commit comments