RedisCacheDriver constructor
RedisCacheDriver({})
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),
});