getClient method

Future<Command> getClient()

Implementation

Future<Command> getClient() async {
  if (connection == null) {
    connection = RedisConnection();
    command = connection!.connect(config.getRequired<String>('redis.host'), config.getRequired<int>('redis.port'));
  }
  return await command!;
}