ClientInterface.php 551 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Drupal\redis;
  3. /**
  4. * Client proxy, client handling class tied to the bare mininum.
  5. */
  6. interface ClientInterface {
  7. /**
  8. * Get the connected client instance.
  9. *
  10. * @return mixed
  11. * Real client depends from the library behind.
  12. */
  13. public function getClient($host = NULL, $port = NULL, $base = NULL);
  14. /**
  15. * Get underlaying library name used.
  16. *
  17. * This can be useful for contribution code that may work with only some of
  18. * the provided clients.
  19. *
  20. * @return string
  21. */
  22. public function getName();
  23. }