RedisClient constructor

RedisClient({
  1. RedisSocketOptions? socket,
  2. RedisCommandOptions command = const RedisCommandOptions(),
  3. RedisLogger logger = const _NoopRedisLogger(),
})

A client for interacting with a Redis server. 与Redis服务器交互的客户端。

Implementation

RedisClient({
  RedisSocketOptions? socket,
  RedisCommandOptions command = const RedisCommandOptions(),
  RedisLogger logger = const _NoopRedisLogger(),
})  : _socketOptions = socket ?? RedisSocketOptions(),
      _commandOptions = command,
      _logger = logger;