CacheConfiguration class abstract interface

Implementers

Properties

copyCachedResponseHeaders bool
When true, copies CachedResponseHeaders to responseHeaders.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
httpClient → Client
The HTTP client used to download cache.
no setter
maxBufferSize int
The maximum amount of data to buffer in memory before writing to disk during a download. Once this limit is reached, the cache stream will flush the buffer to disk. However, the download will continue to buffer more data. The download stream will only be paused if it is receiving more data than it can write to disk. As a result, the theoretical maximum memory usage of a cache download is double this value. Default value is 25MB.
getter/setter pair
minChunkSize int
The preferred minimum size of chunks emitted from the cache download stream. Network data is buffered until reaching this size before being emitted downstream. Larger values improve I/O efficiency at the cost of increased memory usage. Default value is 64KB.
getter/setter pair
rangeRequestSplitThreshold int?
The minimum number of bytes that must exist between the current download position and a range request's start position before creating a separate download stream. Set to null to disable separate range downloads.
getter/setter pair
requestHeaders Map<String, String>
Custom headers to be sent when downloading cache.
getter/setter pair
responseHeaders Map<String, String>
Custom headers to add to every cached HTTP response.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saveMetadata bool
When false, deletes the metadata file after the cache is complete. Metadata is always saved for incomplete cache files when savePartialCache is true, so the download can be resumed. This value should only be set to false if you have no intention of creating a cache stream for the cache file again. Default is true.
getter/setter pair
savePartialCache bool
When false, deletes partial cache files (including metadata) when a http cache stream is disposed before cache is complete. Default is true.
getter/setter pair
validateOutdatedCache bool
When true, validates the cache against the server when the cache is outdated.
getter/setter pair

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