소스 검색

Merge branch 'dockerenv' of 39.97.239.116:gyfl/access into dockerenv

ayHaru 4 년 전
부모
커밋
bc2003a1d8
1개의 변경된 파일26개의 추가작업 그리고 0개의 파일을 삭제
  1. 26 0
      queue/daemon.php

+ 26 - 0
queue/daemon.php

@@ -0,0 +1,26 @@
+<?php
+
+class Daemon{
+
+    protected $handler = null;
+
+    public function init(){
+        $this->handler = new \Redis();
+        $this->handler->connect('39.97.239.116', 6379);
+        $this->handler->auth('huaxiashangmeng');
+        $this->handler->select(1);
+    }
+
+    public function btoc($listname){
+        $result = $this->handler->BRPOP($listname,0);
+        if($result){
+
+        }
+    }
+}
+
+$daemon = new Daemon();
+$daemon->init();
+while (true){
+
+}