From 8f3c044f4156ce228aa44f1b794b3cbaf544ca89 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Fri, 8 Sep 2023 12:03:44 +0800 Subject: [PATCH] =?UTF-8?q?add:=E5=B0=81=E8=A3=85=E9=80=9A=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E8=8E=B7=E5=8F=96redis=E5=AE=9E=E4=BE=8B=E7=9A=84logi?= =?UTF-8?q?c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/RedisLogic.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 app/common/logic/RedisLogic.php diff --git a/app/common/logic/RedisLogic.php b/app/common/logic/RedisLogic.php new file mode 100644 index 000000000..5a6b56fbf --- /dev/null +++ b/app/common/logic/RedisLogic.php @@ -0,0 +1,14 @@ +connect(env('redis.host')); + $redisInstance->auth(env('redis.auth')); + return $redisInstance; + } +} \ No newline at end of file