FactoryInterface.php 710 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Client proxy, client handling class tied to the bare mininum.
  4. */
  5. interface Redis_Client_FactoryInterface {
  6. /**
  7. * Get the connected client instance.
  8. *
  9. * @param array $options
  10. * Options from the server pool configuration that may contain:
  11. * - host
  12. * - port
  13. * - database
  14. * - password
  15. * - socket
  16. *
  17. * @return mixed
  18. * Real client depends from the library behind.
  19. */
  20. public function getClient($options = array());
  21. /**
  22. * Get underlaying library name used.
  23. *
  24. * This can be useful for contribution code that may work with only some of
  25. * the provided clients.
  26. *
  27. * @return string
  28. */
  29. public function getName();
  30. }