client()->__call($method,$args); return $result; } public function execWithoutTask($method,...$args) { $result = $this->client()->__call($method,$args); return $result; } protected function client(){ if ($this->ss instanceof SimpleSSDB) { return $this->ss; } $this->ss = new SimpleSSDB(env('SSDB_HOST'), env('SSDB_PORT')); $this->ss->auth(env('SSDB_AUTH')); return $this->ss; } }