redis.php 1022 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. namespace Swoole;
  3. class Redis
  4. {
  5. const STATE_CONNECT = 0;
  6. const STATE_READY = 1;
  7. const STATE_WAIT_RESULT = 2;
  8. const STATE_SUBSCRIBE = 3;
  9. const STATE_CLOSED = 4;
  10. public $onConnect = null;
  11. public $onClose = null;
  12. public $onMessage = null;
  13. public $setting = null;
  14. public $host = null;
  15. public $port = null;
  16. public $sock = null;
  17. public $errCode = null;
  18. public $errMsg = null;
  19. public function __construct(?array $setting = null)
  20. {
  21. }
  22. public function __destruct()
  23. {
  24. }
  25. /**
  26. * @return mixed
  27. */
  28. public function on($event_name, $callback)
  29. {
  30. }
  31. /**
  32. * @return mixed
  33. */
  34. public function connect($host, $port, $callback)
  35. {
  36. }
  37. /**
  38. * @return mixed
  39. */
  40. public function close()
  41. {
  42. }
  43. /**
  44. * @return mixed
  45. */
  46. public function getState()
  47. {
  48. }
  49. /**
  50. * @return mixed
  51. */
  52. public function __call($command, $params)
  53. {
  54. }
  55. }