Commit 3a47e5f
committed
bug #46401 [Cache] Throw when "redis_sentinel" is used with a non-Predis "class" option (buffcode)
This PR was merged into the 4.4 branch.
Discussion
----------
[Cache] Throw when "redis_sentinel" is used with a non-Predis "class" option
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| License | MIT
Enforce usage of `\Predis\Client` when the `redis_sentinel` option is enabled.
Otherwise it is possible to give the option `class: Redis`, which will setup the connection without any error but fail to work, because the Redis commands will be issued against the Sentinel instances instead of the Redis instances.
Commits
-------
cdc9414 [Cache] Throw when "redis_sentinel" is used with a non-Predis "class" optionFile tree
2 files changed
+13
-0
lines changed- src/Symfony/Component/Cache
- Tests/Adapter
- Traits
2 files changed
+13
-0
lines changedLines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
46 | 55 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
181 | 185 | | |
182 | 186 | | |
183 | 187 | | |
| |||
0 commit comments