CacheConfig class
Cache settings.
CacheConfig(
defaultStore: 'redis',
stores: <String, Map<String, dynamic>>{
'memory': <String, dynamic>{'driver': 'memory', 'max_size': 1000},
'file': <String, dynamic>{'driver': 'file', 'path': 'storage/cache'},
'redis': <String, dynamic>{'driver': 'redis', 'host': '127.0.0.1'},
},
);
Constructors
Properties
- defaultStore → String
-
Name of the store used by
CacheManager.store().final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stores
→ Map<
String, Map< String, dynamic> > -
Store name to options. Each needs a 'driver' option.
final
Methods
-
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