sqlLister.php 455 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace catchAdmin\api\controller;
  3. use catchAdmin\api\service\mysqlToKafuka01;
  4. use catcher\base\CatchController;
  5. use think\facade\Cache;
  6. class sqlLister extends CatchController
  7. {
  8. /**
  9. * 监听者 function
  10. *
  11. * @return void
  12. */
  13. public function lister(){
  14. $redis=Cache::store('redis')->handler();
  15. $sqlTokafuka= new mysqlToKafuka01(2,$redis);
  16. $sqlTokafuka->sql_monitor();
  17. }
  18. }