RedisCacheDriver constructor

RedisCacheDriver({
  1. String host = 'localhost',
  2. int port = 6379,
  3. String? password,
  4. int database = 0,
  5. int maxRetries = 3,
  6. Duration retryDelay = const Duration(milliseconds: 100),
})

Creates a new RedisCacheDriver instance.

host - Redis server hostname (default: 'localhost') port - Redis server port (default: 6379) password - Redis server password (optional) database - Redis database number (default: 0) maxRetries - Maximum connection retry attempts (default: 3) retryDelay - Delay between retry attempts (default: 100ms)

Implementation

RedisCacheDriver({
  this.host = 'localhost',
  this.port = 6379,
  this.password,
  this.database = 0,
  this.maxRetries = 3,
  this.retryDelay = const Duration(milliseconds: 100),
});