mirror of https://github.com/MISP/MISP
chg: [CLI] Add help for Admin redisReady command
parent
38fa8d8463
commit
aaf1c01b3d
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue