CacheStrategy class
Cache strategy configuration
Constructors
- CacheStrategy({Duration ttl = const Duration(minutes: 5), int maxSize = 100, CacheEvictionPolicy evictionPolicy = CacheEvictionPolicy.lru, bool enableMemoryCache = true, bool enableDiskCache = false})
-
const
Properties
- enableDiskCache → bool
-
final
- enableMemoryCache → bool
-
final
- evictionPolicy → CacheEvictionPolicy
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxSize → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- ttl → Duration
-
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