Connector.php 636 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Illuminate\Contracts\Redis;
  3. interface Connector
  4. {
  5. /**
  6. * Create a connection to a Redis cluster.
  7. *
  8. * @param array $config
  9. * @param array $options
  10. * @return \Illuminate\Redis\Connections\Connection
  11. */
  12. public function connect(array $config, array $options);
  13. /**
  14. * Create a connection to a Redis instance.
  15. *
  16. * @param array $config
  17. * @param array $clusterOptions
  18. * @param array $options
  19. * @return \Illuminate\Redis\Connections\Connection
  20. */
  21. public function connectToCluster(array $config, array $clusterOptions, array $options);
  22. }