From 52b5044141e28bf204bc9a56a6b21bd7a95a3096 Mon Sep 17 00:00:00 2001 From: EasyChen Date: Sat, 22 Jan 2022 23:00:43 +0800 Subject: [PATCH] change cache store to redis --- api/.env.example | 2 +- api/config/cache.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/.env.example b/api/.env.example index 5d520e1..32a20cd 100644 --- a/api/.env.example +++ b/api/.env.example @@ -24,7 +24,7 @@ SESSION_LIFETIME=120 MEMCACHED_HOST=127.0.0.1 -REDIS_HOST=127.0.0.1 +REDIS_HOST=redis REDIS_PASSWORD=null REDIS_PORT=6379 diff --git a/api/config/cache.php b/api/config/cache.php index 8736c7a..d283983 100644 --- a/api/config/cache.php +++ b/api/config/cache.php @@ -15,7 +15,7 @@ return [ | */ - 'default' => env('CACHE_DRIVER', 'file'), + 'default' => env('CACHE_DRIVER', 'redis'), /* |--------------------------------------------------------------------------