HttpCache class abstract

A cache class to store HTTP responses and manage caching settings.

Constructors

HttpCache()

Properties

cacheCheckRequestCount int
no getter
enabled bool
Whether caching is enabled. Defaults to true.
no setter
hashCode int
The hash code for this object.
no setterinherited
maxCacheSize int
The cache size limit in bytes. Default is 100MB (100000000). It is possible that the size of the cache may temporarily exceed the size limit.
getter/setter pair
path Uri
The path to the cache store.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

evictAll() Future<void>
Clears the cache.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCheckCacheSizeCallback(void callback()) → void
setEnabled(bool enabled) Future<void>
Enable or disable caching.
setPath(Uri pathUri) Future<void>
Specify a custom Uri for the cache store.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited