getClient method

Future<Command> getClient()

Implementation

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