Cherry 2 vuotta sitten
vanhempi
commit
f43c616625
1 muutettua tiedostoa jossa 18 lisäystä ja 0 poistoa
  1. 18 0
      application/extra/redis.php

+ 18 - 0
application/extra/redis.php

@@ -0,0 +1,18 @@
+<?php
+/**
+ * 消息队列配置
+ * 内置驱动:redis、database、topthink、sync
+ */
+
+use think\Env;
+
+return [
+    //Redis驱动
+    "host" => Env::get("redis.host", "120.79.86.50"),//Redis主机IP地址
+    "port" => Env::get("redis.port", 6379),//Redis端口
+    "password" => Env::get("redis.password", "hdl2022"),//Redis密码
+    "select" => 4,//Redis数据库索引
+
+    "timeout" => 0,//Redis连接超时时间
+    "persistent" => false,//是否长连接
+];