Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 1 | <?php |
| 2 | |
| 3 | namespace Illuminate\Contracts\Redis; |
| 4 | |
| 5 | interface Connector |
| 6 | { |
| 7 | /** |
| 8 | * Create a connection to a Redis cluster. |
| 9 | * |
| 10 | * @param array $config |
| 11 | * @param array $options |
| 12 | * @return \Illuminate\Redis\Connections\Connection |
| 13 | */ |
| 14 | public function connect(array $config, array $options); |
| 15 | |
| 16 | /** |
| 17 | * Create a connection to a Redis instance. |
| 18 | * |
| 19 | * @param array $config |
| 20 | * @param array $clusterOptions |
| 21 | * @param array $options |
| 22 | * @return \Illuminate\Redis\Connections\Connection |
| 23 | */ |
| 24 | public function connectToCluster(array $config, array $clusterOptions, array $options); |
| 25 | } |