$cache_expire_time = Redis::ttl($cache_name); // always returns '-2'. ... You need to specify the Redis connection configured in config/cache.php.
確定! 回上一頁