摘要: return [ 'connector' => 'Redis', // Redis 驱动 'expire' => null, // 任务的过期时间,默认为60秒; 若要禁用,则设置为 null 'default' => 'default', // 默认的队列名称 'host' => '127.0.0 阅读全文
posted @ 2021-04-13 21:53 Conqueror· 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 1、首先,compare需要下载安转包,如果你有的话就可以直接使用这个扩展包 消息队列扩展 composer require topthink/think-queue 在extra文件夹中的queue.php进行配置 return [ 'connector' => 'database', 'tabl 阅读全文
posted @ 2021-04-13 20:53 Conqueror· 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 原生方式 添加索引 $hosts = [ '127.0.0.1:9200' ]; $client = \Elasticsearch\ClientBuilder::create()->setHosts($hosts)->build(); // 创建索引 $params = [ 'index' => ' 阅读全文
posted @ 2021-04-13 17:57 Conqueror· 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 可以放置到你的类库文件,使用的时候直接引用 下载扩展包 全文检索 composer require elasticsearch/elasticsearch <?php namespace app\common\lib; use Elasticsearch\ClientBuilder; class E 阅读全文
posted @ 2021-04-13 17:31 Conqueror· 阅读(474) 评论(0) 推荐(0) 编辑