This commit is contained in:
2021-01-04 17:16:54 +08:00
parent 0d848dc5f1
commit 2d97c3fe92
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -39,6 +39,7 @@ class Redis extends Component
$event->on(Event::RELEASE_ALL, [$this, 'destroy']);
$event->on(Event::EVENT_AFTER_REQUEST, [$this, 'release']);
$event->on(Event::SERVER_WORKER_START, [$this, 'createPool']);
$event->on(Event::SERVER_TASK_START, [$this, 'createPool']);
}