RedisDriverFactory class
Builds a RedisDriver with a new connection. Options: host, port, username, password, db, tls, prefix, pool_size. pool_size is the most connections to open (ioredis maxConnection). ioredis shares one connection and only opens more for blocking commands.
- Implemented types
Constructors
- RedisDriverFactory()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
create(
Map< String, dynamic> options) → CacheDriver -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
retryDelay(
int times) → Duration - Wait before reconnect: 50 ms per try, at most 2 s.