PlexCacheConfig class
Configuration for HTTP response caching.
Constructors
Properties
-
cacheKey
→ String Function(String url, Map<
String, dynamic> ? query)? -
Optional custom cache key generator. Defaults to url + sorted query params.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxAge → Duration
-
Maximum age before a cached response is considered stale.
final
- maxStale → Duration?
-
Optional maximum stale duration. If set, responses older than maxAge
but within maxStale may still be served when network is unavailable.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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