From aaf1c01b3dc39714cb6a217b899bc6e6383d441d Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Sat, 13 Nov 2021 11:34:27 +0100 Subject: [PATCH] chg: [CLI] Add help for Admin redisReady command --- app/Console/Command/AdminShell.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Console/Command/AdminShell.php b/app/Console/Command/AdminShell.php index 9e841bb1a..450bab021 100644 --- a/app/Console/Command/AdminShell.php +++ b/app/Console/Command/AdminShell.php @@ -64,6 +64,9 @@ class AdminShell extends AppShell $parser->addSubcommand('redisMemoryUsage', [ 'help' => __('Get detailed information about Redis memory usage.'), ]); + $parser->addSubcommand('redisReady', [ + 'help' => __('Check if it is possible connect to Redis.'), + ]); return $parser; } @@ -499,7 +502,7 @@ class AdminShell extends AppShell { try { $redis = $this->Server->setupRedisWithException(); - $redis->randomKey(); + $redis->ping(); $this->out('Successfully connected to Redis.'); } catch (Exception $e) { $this->error('Redis connection is not available', $e->getMessage());